branchrust_reboot/main/ui_overhead_optimscancel
54 Commits over 0 Days - ∞cph!
Set locomotive and workcart canvas LOD component as dynamic
Keep the inventory canvas enabled when invisible, its causing issues with the item icon using legacy texts
Cull IO counter canvas by distance
Cull all monument RF painting signs by distance
S2P both oil rigs and excavator
(oil rig will conflict with naval_update, will have to be stomped and redone)
Workcart and locomotive cockpit canvases are disabled when the vehicle is off
Also culled by distance
Added GameObjectLOD on missile silo wipe laptop world space canvas
S2P missile silo
Card table world canvas culling based on distance
Cull hackable crate world canvases by distance (around 150m)
Its a global networked entity so the canvas was enabled for all players on the map
Fixed a bunch of scaled texts not marked as non static
- main menu workshop dropdown items
- vendor listings
- shockbyte modal
Fixed shockbyte popup icons not being marked as dynamic
Fixed chat and sleeping bag clusters texts appearing blurry
Added hierarchy path for non menu, game or engine UI in printCanvases command. Easier to spot canvases from entities
Fixed F1 tools tab hud toggles not initializing correctly following
133710, causing half of the hud to disappear when opened
Fixed hudcomponent command messing with all these optims, we now toggle gameobjects only and keep the canvases untouched
Crosshair disables its canvas when hidden
Now disable their canvas when invisible:
Rock paper scissors
Camera overlay
Scope overlay
Fixed blackout overlays not turning off completely
Now disable their canvas when invisible:
- Reticle
- Player names
- Demo recorder saved
- Vital notices
Removed canvases on farmable animal, sleeping bag name, io entity
Removed canvas on health vital, use a canvas group instead
Loading screen and developer tools (console) toggle their canvases
Removed the old "UI - Scaled" canvas in EngineUI, has been replaced by "UI - Scaled_1080p"
Now disable their canvas when invisible:
- Net graph
- UI background
- Demo playback UI
- Tutorial help popups
Fixed IO texts not being set as dynamic
Also toggle the canvas when invisible
Community UI canvases are toggled off when they're empty
Fixed shockbyte texts not set as dynamic
Now disable their canvas when invisible:
- Team ui
- Fog overlay
- Wounded screen
Some fixes to other screens not disabling themselves by default
Removed the three GameUI.Hud.Buffs prefabs in GameUI.Hud
Unused legacy stuff
Now disable their canvas when invisible:
- Build cost indicator
- Repair cost indicator
- Game tip
- Voice chat
- God and invis overlays
- All full screen overlays (9 canvases)
Sleeping screen, AI designer, pie menu, progress bar and sleeping screen now disable their canvas when invisible
Unshelved Jake's printCanvases command changes: it now shows canvases as a hierarchy
Removed the text caching in UI_Page again, OnCanvasHierarchyChanged already unregister child texts of disabled canvas
Fixed settings dropdown being enabled during init, not needed
TMP_Text now checks if the cached canvas is enabled before registering itself
Fixes texts being registered when enabled in a disabled canvas
Added ui.printTexts to debug the active dynamic texts
Set all tooltip texts to dynamic
Fixed settings and server browser scaled texts not marked as dynamic
Only update SDF Scale when lossy scale has changed by more than 20% (from last TMP version)
Added Is Scale Static field to RustIcon editor
LoadingScreen toggles its soft mask
DeathScreen toggles its canvas too
Crafting, inventory, contacts, conversation and clan screens toggle their canvas when hidden
Saves an extra ~0.05ms per frame
Set some texts as non static in the server browser
Restore the text caching in UI_Page, but only for non static texts
Fixed soft masks still wasting time masking when their root canvas is toggled
Disable overlay canvas when the menu is not visible
Commented UIExtraCallbacks, not used as UI particles aren't working in builds
Disable the loading spinner gameobject in the home hero modal when its hidden, was causing canvas rebuilds
Removed the menu code caching and unregistering texts from TMP DoRebuild, not needed anymore