diff options
author | Manuel Moos <z-man@users.sf.net> | 2020-02-15 23:50:25 +0100 |
---|---|---|
committer | Manuel Moos <z-man@users.sf.net> | 2021-08-31 22:16:23 +0200 |
commit | 6be702bace06604281b3358ce7015086bcb7e2fb (patch) | |
tree | c70226637172b8a17b9e6baf2d90926fa5810356 /tests/test_color.h | |
parent | 794606657745e77b89523f19c5e3b69c838f0cb7 (diff) |
Fix negative delta arguments
Three attack points, all after the regular calculations:
1. Prevent negative physics timestep counts. They could occur if
physics_jtter_fix is changed at runtime.
2. idle_step is not allowed to go below 1/8th of the input step.
That could happen on physics_jitter_fix changes or heavily
fluctuating performance.
3. Prevent that the idle_step modification breaks the promise
that Engine.get_physics_interpolation_fraction() is between
0 and 1 by doing more physics steps than the base system wants.
Fixes #26887
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Diffstat (limited to 'tests/test_color.h')
0 files changed, 0 insertions, 0 deletions