b3dgs / lionengine

Java 2D Game Engine
http://lionengine.b3dgs.com
GNU General Public License v3.0
137 stars 23 forks source link

Add Hybrid loop working same at any speed #776

Closed DjThunder closed 2 years ago

DjThunder commented 2 years ago

Merge capability of extrapolation and frame skipping onto one loop. This will allow to use extrapolation when frame speed is higher than reference, and frame skipping when lower.

Compared to pure extrapolation, this will avoid glitches with slow speed, and compared to frame skipping, this will allow fast rendering.