TerraformersMC / ModMenu

A menu for, you guessed it, mods!
MIT License
476 stars 140 forks source link

Simplify screen background rendering #608

Closed LostLuma closed 1 year ago

LostLuma commented 1 year ago

Hello, I've been experimenting with a an additional optimization in Dynamic FPS recently that modmenu can also benefit from, so I thought I'd PR it here.

The gist of it is that world rendering can be skipped if a screen is covering the whole world, which can be detected by whether a screen has a background. More details: https://github.com/juliand665/Dynamic-FPS/pull/91

Modmenu always has the dirt background, but used its own rendering for it which I've changed in this PR to use the simpler method that can make use of the optimization. Visually there is no difference: mods screen before mods screen after

Prospector commented 1 year ago

Great, thank you!