How to use NewtonReadPerformanceTick

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

How to use NewtonReadPerformanceTick

Postby PJani » Fri Sep 11, 2009 9:37 pm

Hy i have question what is NewtonReadPerformanceTick returning, milliseconds?

And if NewtonReadPerformanceTick returns per thread?
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
User avatar
PJani
 
Posts: 448
Joined: Mon Feb 02, 2009 7:18 pm
Location: Slovenia

Re: How to use NewtonReadPerformanceTick

Postby Julio Jerez » Fri Sep 11, 2009 11:52 pm

you pass a callback to a timrer, and it returrns the number of ticks per calls one each of teh major systems.
It is not per thread, but you can see how mutithreadin affect the performance by seeing teh number of tick go higher or lower.
Usautly you can pass use timeGetTime or any other high resolution timer, the higher the frequecy the smother the acuracy.

the timer are called for the Main thread, so you do no need to worry about that.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: How to use NewtonReadPerformanceTick

Postby PJani » Sat Sep 12, 2009 8:32 am

Is NEWTON_PROFILER_WORLD_UPDATE full sum of all updates or transform callback update?
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
User avatar
PJani
 
Posts: 448
Joined: Mon Feb 02, 2009 7:18 pm
Location: Slovenia

Re: How to use NewtonReadPerformanceTick

Postby Julio Jerez » Sat Sep 12, 2009 9:46 am

yes,
it is hiearchical
Woudl Update is every thong
collision is evethong collision related,
dynamics is everthoing dynamics relaletd and so on.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
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 37 guests