voxelcore/src/engine
ostermine 67c913041e fix headless tick rate: schedule ticks by deadlines
ServerMainloop slept the rest of the tick and then restarted counting from
the moment it woke up, so every sleep overshoot made the tick longer. With a
coarse timer (a VirtualBox guest of a Windows host) --tps 20 gave 12-17 ticks
per second. Ticks now follow absolute deadlines on steady_clock; after falling
more than 5 ticks behind the schedule is reset instead of running a burst of
ticks.

The time of a tick is its scheduled time, so delta is exactly 1 / tps while
the loop keeps up, as in test mode. With the wake-up time deltas jitter
around 1 / tps, and the world tick clock, which calls on_world_tick at most
once per update, skipped every few ticks.
2026-11-05 13:46:49 +03:00
..
AssetsManagement.cpp fix loaded tracks cache does not reset on assets reset 2026-09-03 21:44:14 +03:00
AssetsManagement.hpp feat: keeping assets alive during current frame (temporary solution) 2026-02-28 00:27:08 +03:00
CoreParameters.hpp add '--log' command line parameter 2026-08-03 19:54:54 +03:00
Engine.cpp feat: 'user:project' as default project option 2026-10-12 22:08:32 +03:00
Engine.hpp test models hot-reload 2026-08-31 01:18:35 +03:00
EnginePaths.cpp add background assets loader 2026-01-23 22:40:57 +03:00
EnginePaths.hpp add 'write-to-user' permission & refactor checking for writeability 2025-12-07 00:08:57 +03:00
Mainloop.cpp add quit signal check to the client mainloop 2026-07-31 18:57:43 +03:00
Mainloop.hpp rename engine.hpp/cpp to Engine.hpp/cpp & move Engine, Time and mainloop classes to 'engine' folder 2024-12-25 12:13:03 +03:00
PostRunnables.hpp rename engine.hpp/cpp to Engine.hpp/cpp & move Engine, Time and mainloop classes to 'engine' folder 2024-12-25 12:13:03 +03:00
ServerMainloop.cpp fix headless tick rate: schedule ticks by deadlines 2026-11-05 13:46:49 +03:00
ServerMainloop.hpp rename engine.hpp/cpp to Engine.hpp/cpp & move Engine, Time and mainloop classes to 'engine' folder 2024-12-25 12:13:03 +03:00
Time.hpp make VCA animation line intensity multiplier implicit 2026-09-26 23:09:40 +03:00
WindowControl.cpp pass patch number to the engine 2026-11-01 17:30:34 +03:00
WindowControl.hpp feat: refresh on demand in menu (adaptive framerate) 2025-11-09 22:22:24 +03:00