forked from mirrors/0ad
843f39ba55
The progressive load timeout was hardcoded to 10ms, causing the CPU to be mostly idle during map loading. This commit replaces the fixed value with a dynamic budget derived from the display refresh rate when VSync is enabled, or from the configured adaptivefps.menu limit otherwise. Fixes: #8774