Files
sbox-public/engine/Sandbox.Engine/Systems/SceneSystem/Lights
Lorenz Junglas 2e8a208d0d Fix shadows vram leak (#4527)
* Add Texture Pool section to shadow debug

https://files.facepunch.com/lolleko/2026/April/13_16-21-UsedRook.png

Shows of orphaned textures (in flight stat keeps growing.

* Return shadow map to pool when light is destroyed

https://files.facepunch.com/lolleko/2026/April/13_16-24-ClutteredCooter.png

* Use Queue instead of Stack for shadow texture pool eviction

We want FIFO semantics instead of LIFO.
Stack (LIFO) buried old textures under newer ones, potentially preventing disposal

* Remove unused OnLightRemoved callback
2026-04-13 18:05:57 +02:00
..
2026-03-27 12:07:24 +00:00
2026-04-13 18:05:57 +02:00
2026-03-27 12:07:24 +00:00
2026-03-27 12:07:24 +00:00