branchrust_reboot/main/allocation_reductionscancel
8 Commits over 0 Days - ∞cph!
Preset list capacity on active renderer effects (stops list reallocations at runtime)
Stop UI_Hero_Infobox keeping running its update method for no reason when the menu is hidden.
Restore the update loop when menu is open again.
Saves 40 bytes a frame
Stop PostProcessingLayer stealing a whole 1 KB/s
This was due to profiling using a formatted string, a very minor mistake that we paid in allocations on every client.
- Profiling was using a formatted string in a hot loop
- Hide this behind convar: graphics.detailed_postprocessing_profiling
Fix DLSS breaking with GetTemporary.
Pass a texture descriptor struct to ask for a random write texture.
Dont allocate new RenderTextures every frame in PsotProcessLayer.RenderScale()
Lets use RenderTexture.GetTemporary instead
Savings in render loop (roughly):
- AsyncTextureLoad.Texture (.4 ms)
- Texture2D.LoadRawTextureData (.1 ms)
Save 40 bytes a frame in UIChat.
'FindWith' was allocating a lambda, replace with a simple loop
Stop HurtOverlay allocating 36 bytes a frame.
Was boxing a float into Mathf.Max() with a single value?