branchrust_reboot/main/presets_editor/quality/preset_change_performancecancel
11 Commits over 0 Days - ∞cph!
UpdateCurrentOptionFromElement virtual function.
Override in graphics UI.
TerrainTexturing profiling
Null check lod and foliage grid instances, for when changing options in the menu, not in-game.
Extra wait frames.
Support disabling FoliageGrid refresh.
Disable FoliageGrid refreshing during preset changes, manually refresh once settings are all applied, reduces calls from 2 to 1.
Split manual LODGrid and FoliageGrid refresh calls over two seperate frames when changing presets.
Setup virtual pre/post apply functions.
Override for TweakGraphicsPresetsUI and toggle LODgrid refreshing there instead.
FoliageGrid profling.
RustCamera foliage grid profiling.
Test:
Disable LODGrid refreshing when applying a preset change, enable it afterwards and then manually call it once.
Saves it being called 3 times when the tree, particle and mesh quality convars each get changed at the same time.
Add profiling for LODGrid.Refresh