mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-03 17:23:40 -04:00
Just some easy wins, without touching any of the gizmo API surface.
MSC main scene gizmo time went went from 55ms to 19ms
* Actually cache GizmoDetails / GizmoHandles
Before the cache flag `handleBuilt` was never actually set to true 🫠 , so `BuilldGizmodDetails` would rerun every frame resulting in the majority of our Gizmo frame time.
* Gizmo pool vertex arrays
* Gizmo scene object pool uses struct keys instead of strings
* Gizmo cache vertex object render config, skip redundant native sets
* Cull decal direction arrow gizmo at distance
* Skip gizmo scope for components that don't draw gizmos
* Slim down decal direction arrow gizmo