21-02-2020, 08:10 AM
(This post was last modified: 21-02-2020, 11:25 AM by josemendez.)
(20-02-2020, 06:52 PM)hazneliel Wrote: By reducing the max timestep it makes the game run slower with a higher fps. This is not desired. On top of that even when I get the Obi fixed update to be called 1 per frame, that single fixed update is using 20% of cpu time. That is a lot
Hi Maria,
Reducing the max timestep will cap the amount of wall-clock time advanced in the physics world, so it will increase your fps at the cost of "skipping" simulation time if your frames take longer to render than a single step. An alternative would be increasing the timestep (fixed timestep, not max timestep).
20% of CPU time depends on what your total CPU consumption for a frame is. Also, higher CPU consumption % is generally better as that means all cores are busy. So depending on your case, It can be a lot, or very little. How many ms/frame does the solver take to perform a step?