MovingBlocks / Terasology

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

feat: throttle chunk processing based on deadline #5238

Closed BenjaminAmos closed 2 months ago

BenjaminAmos commented 2 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