Skip to content

CachedResources for GasTileDangerousTemperatureOverlay (#43032) - #4825

Open
blackknight954 wants to merge 2 commits into
new-frontiers-14:masterfrom
blackknight954:OpticalThermalFixCherryPick
Open

CachedResources for GasTileDangerousTemperatureOverlay (#43032)#4825
blackknight954 wants to merge 2 commits into
new-frontiers-14:masterfrom
blackknight954:OpticalThermalFixCherryPick

Conversation

@blackknight954

@blackknight954 blackknight954 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

About the PR

Cherrypicks 43032 from upstream, fixes a performance issue for opticalthermal temperature shaders that causes performance degredation.

Why / Balance

The more performance the better.

Technical details

See original PR for media and technical details

Requirements

Non-player-facing changes do not need changelogs as far as I am aware, but feel free to correct if I am wrong.

* init

* minifix

* that is nullable

---------

Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
@Menshin

Menshin commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Requires #4749 . Not anymore 🙃

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...
@github-actions github-actions Bot added size/M and removed size/S labels Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants