A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Leadwerks » Sun Dec 13, 2009 12:24 am
Would it raise the max stepsize for NewtonUpdate to 1/30 or more? A lot of single-player games are designed to run at a minimum of 30 FPS. Even if it is less accurate, I would like to be able to try it. I already have interpolated physics that run the same at any framerate, but I would like to see if some overhead can be avoided by only updating the physics every 1/30 seconds.
-

Leadwerks
-
- Posts: 569
- Joined: Fri Oct 27, 2006 2:54 pm
by Julio Jerez » Sun Dec 13, 2009 10:20 am
it will do bad physics,
the time statep is clapmed to 1/60 < timestep < 1/1000
if your game runs at 30, you can simply take two physics Updates at 1/60
NetwonUpdate (1/60);
NetwonUpdate (1/60);
-
Julio Jerez
- Moderator

-
- Posts: 12484
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Leadwerks » Sun Dec 13, 2009 4:21 pm
That's already what it does automatically. I was just wondering if it might be more efficient to do a single update at a lower rate. If it's just a matter of unclamping the value, I'd suggest it be an option.
-

Leadwerks
-
- Posts: 569
- Joined: Fri Oct 27, 2006 2:54 pm
by Julio Jerez » Sun Dec 13, 2009 4:53 pm
the physic will be very erratic, 60 fps is is verfy slow as it is for complex joint set up.
-
Julio Jerez
- Moderator

-
- Posts: 12484
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Leadwerks » Sun Dec 13, 2009 6:48 pm
Okay, you know better than I do about this.
-

Leadwerks
-
- Posts: 569
- Joined: Fri Oct 27, 2006 2:54 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 7 guests