Skip to content

some optimizations and improvement#2

Merged
Nukoooo merged 2 commits into
masterfrom
test
May 17, 2026
Merged

some optimizations and improvement#2
Nukoooo merged 2 commits into
masterfrom
test

Conversation

@Nukoooo
Copy link
Copy Markdown
Contributor

@Nukoooo Nukoooo commented May 17, 2026

  • move replay deserialization off the main thread to prevent potential stuttering
  • add .idx sidecars to persist fallback records across server crashes/restarts
  • unify main and stage pending replay processing
  • unify replay playback caches
  • add immediate disk cleanup for expired .tmp files and orphaned sidecars
  • add timer_replay_fallback_ttl convar
  • parallelize WR checkpoint loading with Task.WhenAll to drastically reduce record load time
  • only run trace for checking surf ramps when player is not on ground & timer is running

Nukoooo added 2 commits May 15, 2026 16:09
- move replay deserialization off the main thread to prevent stuttering
- add .idx sidecars to persist fallback records across server crashes/restarts
- unify main and stage pending replay processing
- unify replay playback caches
- dynamically size ReplayFrameBuffer based on previous run length
- add immediate disk cleanup for expired .tmp files and orphaned sidecars
- add immediate disk cleanup for expired .tmp files and orphaned sidecars
- add timer_replay_fallback_ttl convar
- pass ReplayFrameData as reference to ReplayFrameBuffer.Add to avoid copying
- use power-of-two ring buffer with bitmasking instead of modulo in ReplayFrameBuffer for less cpu cycles with the cost of slightly higher memory usage
- parallelize WR checkpoint loading with Task.WhenAll to drastically reduce record load time
@Nukoooo Nukoooo merged commit c6aec83 into master May 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant