Skip to content

Commit

Permalink
Use a vector instead of an array in canvas shader instance buffer.
Browse files Browse the repository at this point in the history
This avoids a pathological performance cliff on Adreno devices
  • Loading branch information
clayjohn committed Dec 5, 2024
1 parent 1f47e4c commit e316739
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct InstanceData {

#endif
vec2 color_texture_pixel_size;
uint lights[4];
uvec4 lights;
};

//1 means enabled, 2+ means trails in use
Expand Down

0 comments on commit e316739

Please sign in to comment.