1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Reduce per-frame memory allocations from the heap in the Mobile renderer.

This commit is contained in:
clayjohn
2025-03-07 22:01:24 -08:00
parent b5bdb88062
commit 5efcd64b23
6 changed files with 24 additions and 43 deletions

View File

@@ -379,7 +379,8 @@ RID RendererCanvasRenderRD::_create_base_uniform_set(RID p_to_render_target, boo
RendererRD::MaterialStorage *material_storage = RendererRD::MaterialStorage::get_singleton();
//re create canvas state
Vector<RD::Uniform> uniforms;
thread_local LocalVector<RD::Uniform> uniforms;
uniforms.clear();
{
RD::Uniform u;