Add access to interpolation fraction for fixed timestep interpolation

Addresses #30068

This is a prerequisite for allowing proper support for fixed timestep interpolation, exposing the interpolation fraction to the engine, modules and gdscript.

The interpolation fraction is the fraction through the current physics tick at the time of the current frame.
This commit is contained in:
lawnjelly 2019-07-01 17:42:02 +01:00
parent d40dbd6d11
commit bf6c301b9c
8 changed files with 22 additions and 0 deletions

View file

@ -227,6 +227,7 @@ Engine::Engine() {
frames_drawn = 0;
ips = 60;
physics_jitter_fix = 0.5;
_physics_interpolation_fraction = 0.0f;
_frame_delay = 0;
_fps = 1;
_target_fps = 0;