XaeroPlus

XaeroPlus

4M Downloads

FPS Stutter on Cave Layer Change

rfresh2 opened this issue ยท 3 comments

commented

Seems to occur while changing cave layers.

Profiles during switching cave layers quickly:

Original issue on BetterMC: LunaPixelStudios/Better-MC#1342

todo:

  • Check if related to minimap scaling
  • Check locks on regions causing waits
  • Check if related to Fast Mapping
commented

Resolved in:

Forge 1.20.1: 25f63be

Fabric 1.20.1: c47f79c

Removed fast mapping of cave layers as these seem to be the main culprit for processing time. I've also reduced the default fast mapping chunk rate limit from 80 to 20.

@chorbintime if you want maximum FPS you can try turning Fast Mapping off in your pack via config. Xaero's default writer is a bit slow and runs on every render tick - but its more heavily rate limited, so ymmv

I would like to get all the map writing off the tick and render events and onto a separate thread. But that's going to require a lot more changes and testing that I'll put off for another day:tm:

commented

Seems to be related to Fast Mapping, can be mitigated by reducing the chunk write rate limit or turning fast mapping off.

I'm going to investigate the processing if the processing on the tick event can be done in an async thread. If not, then will reduce the default rate limit setting value.

commented

Thank you for the solution & the quick response!