CPU hogging bits in my game code in old version

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

CPU hogging bits in my game code in old version

Postby StevenDobbs » Fri Jun 24, 2011 10:01 am

Hello we're a bit locked into newton sdk v1.53 for now.

In AMD code analyst three functions are causing a lot of pain.

Netwon.dll is taking up all the time nearly:

I click on Newton.dll and it says these functions are taking up all the time.

NewtonDestroyAllBodies
NewtonBodySetTorque
NewtonBodyGetCentreOfMass

and what is NetwonBodyAddBoyancyForce?

My game code doesn't call these functions direction, so they must be doing so from the interface functions - but what might they be?
StevenDobbs
 

Re: CPU hogging bits in my game code in old version

Postby Julio Jerez » Fri Jun 24, 2011 11:41 am

The profiler is probably cunfused wit the simbol table and giving the wrong info, the spensive function will be the solver, called by newtonUpdate
That is the same solver used in 2.0 when using solver mode zero.

1.53 is slow, and there nothing I can do about that at this point because it does not longer exist as source library. 1.53 was fused into 2.0.
the upload in google svn is everything I have.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron