mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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:
parent
d40dbd6d11
commit
bf6c301b9c
8 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue