MovingBlocks / Terasology

Terasology - open source voxel world
http://terasology.org
Apache License 2.0
3.69k stars 1.34k forks source link

feat: throttle chunk processing based on deadline #5238

Closed BenjaminAmos closed 7 months ago

BenjaminAmos commented 7 months ago

Contains

This pull request attempts to reduce the effects of long chunk processing times by spreading it out over several frames. If a processing deadline is exceeded (currently 24ms) then LocalChunkProvider should stop processing and resume on the next tick.

Ideally LocalChunkProvider::tick should take that long to execute, however, this reduces the severity of such occurences as an interim solution.

How to test