MeeniMc
MeeniMc
You should cache the string (colors and all included) and return the same string for every `update` call until some 100/200 ms have elapsed.
I tried to improve perf myself. I reduced string update rate to every 50ms (caching the arraylist strings in the object), and that improves performance some, but not as much...
Here are my current numbers: (looking at the empty sky, Sodium-next, 4k, most probably fillrate limited) No hud: ~300 fps MiniHud (5 lines with alpha bg: FPS, time, IG time,...
A similar issue gets discussed in this Sodium issue: https://github.com/CaffeineMC/sodium-fabric/pull/727
Same here; other that want to +1 can use the thumbs up to do so on t his comment.
Running with Kroppeb Sodium fork completely fixes the issue. It's only a game of patience waiting for Sodium to release for 1.17 then.
Things are looking great in combination with Sodium B3
There is a newer version 0.3.1 that I am using with fabric-api-0.41.2, try upgrading. From the dates you may already have it (hard to tell as 0.3.1 self reports as...
You can change the resolution with the 'shift-p' keybind to call-in the default video config screen. You need to unclick 'vsync' and/or the 'max fps' setting in the Sodium options...
Ready for review when you have time @jellysquid3