PhysicsWorld: Simulate after frame render


Use a frame animator class based on QQuickFrameAnimation to get call
backs on each frame rendering and do the physics frame stepping then.

The benefit is that, at most, only one physics frame will happen per
rendered frame. This avoids simulating several time steps and firing
several callbacks when no visual change is happening.

The auto tests are set to 15 ms frame times just to get smooth frames on
a 60 hz monitor (will lag on anything over that though).

[ChangeLog][PhysicsWorld] Change minimumTimestep default value to 1.
[ChangeLog][PhysicsWorld] Make simulation frames work in lockstep with
rendered frames.

Fixes: QTBUG-129530
Change-Id: I959b1db9f50309a6d6547d88f66fb0c6ce36a3ed
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commite05ab04b078720a1605ba4068ba08e63059f7a33
parentbaf17f39e4fe4729bf0307a1cb706d2f383b7a33
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeMon, 27 Jan 2025 13:19:41 +0100