fish-station/Content.Client/Light
Pieter-Jan Briers 8c16b4580b
Fix render target caching in overlays (#40181)
Many newer overlays use IRenderTextures that are sized to the rendered viewport. This was completely broken, because a single viewport can be rendered on multiple viewports in a single frame.

The end result of this was that in the better case, constant render targets were allocated and freed, which is  extremely inefficient. In the worse case, many of these overlays completely failed to Dispose() their render targets, leading to *extremely* swift VRAM OOMs.

This fixes all the overlays to properly cache resources per viewport. This uses new engine functionality, so it requires engine master.

This is still a pretty lousy way to do GPU resource management but, well, anything better needs a render graph, so...
2025-09-21 17:16:17 +12:00
..
Components Fix yaml linter and misc errors (#37444) 2025-07-10 00:25:36 -04:00
EntitySystems Predict PoweredLights (#36541) 2025-08-11 23:06:28 +02:00
Visualizers Cleanup redundant SpriteSystem dependencies in VisualizerSystems (#37758) 2025-05-23 14:12:20 -04:00
AfterLightTargetOverlay.cs Fix render target caching in overlays (#40181) 2025-09-21 17:16:17 +12:00
AmbientOcclusionOverlay.cs Fix render target caching in overlays (#40181) 2025-09-21 17:16:17 +12:00
BeforeLightTargetOverlay.cs Fix render target caching in overlays (#40181) 2025-09-21 17:16:17 +12:00
HandheldLightSystem.cs Decouple Lights from Toggleable Visuals (and headphone music notes bugfix) (#35341) 2025-05-30 19:53:56 -04:00
LightBlurOverlay.cs Fix render target caching in overlays (#40181) 2025-09-21 17:16:17 +12:00
LightCycleSystem.cs Add sun shadows (planet lighting stage 2) (#35145) 2025-03-08 16:07:42 +11:00
RgbLightControllerSystem.cs Update content to remove redundant Robust math types (#38930) 2025-07-22 12:29:17 +02:00
RoofOverlay.cs Fix render target caching in overlays (#40181) 2025-09-21 17:16:17 +12:00
SunShadowOverlay.cs Fix render target caching in overlays (#40181) 2025-09-21 17:16:17 +12:00
TileEmissionOverlay.cs Fix render target caching in overlays (#40181) 2025-09-21 17:16:17 +12:00