The simulation loop slept a flat 50 ms after the tick body, so the real period was the tick's work plus 50 ms and drifted with load; the advertised 20 Hz was never the rate actually achieved. The loop now timestamps the top of the tick and sleeps only the unused remainder of the budget, reporting an overrun instead of sleeping when the body exceeds it. |
||
|---|---|---|
| .. | ||
| save | ||
| tests | ||
| chunk_cache.rs | ||
| client_stream.rs | ||
| main.rs | ||
| player.rs | ||
| save.rs | ||
| world_server.rs | ||