FlashyReese / sodium-extra-fabric

Features that shouldn't be in Sodium.
GNU Lesser General Public License v3.0
259 stars 67 forks source link

Added cache to HudRenderImpl #300

Closed EuropaYou closed 2 months ago

EuropaYou commented 1 year ago

This PR adds cache to HudRenderImpl.

The performance will be most noticeable when the FPS/Coords are on the top/bottom right.

R00tB33rMan commented 1 year ago

Tested this PR with the Sodium Extra's latest changes and experienced no issues. Furthermore, performance did in fact improve as EuropaYou indicates with FPS/Coordinates displayed anywhere on your screen. I'd say this is safe to merge.

EuropaYou commented 1 year ago

Any updates on this? @FlashyReese

FlashyReese commented 2 months ago

It doesn't make sense to cache values that are constantly changing.