This PR accounts for a minor bug in the timerCallback function which resulted in it never reaching the target framerate.
When delaying for the next frame, it did not take into account the time it takes to simulate the cloth.
These should be the minimal set of changes to account for this issue; you can see the difference more starkly by reducing clothNumX and clothNumY (it should reach 60fps now where it did not before).
@matthias-research
This PR accounts for a minor bug in the
timerCallback
function which resulted in it never reaching the target framerate.When delaying for the next frame, it did not take into account the time it takes to simulate the cloth.
These should be the minimal set of changes to account for this issue; you can see the difference more starkly by reducing
clothNumX
andclothNumY
(it should reach 60fps now where it did not before).