Make MAX_INSTANCE_UNIFORM_INDICES
adjustable using a project setting
#4467
Labels
Milestone
MAX_INSTANCE_UNIFORM_INDICES
adjustable using a project setting
#4467
Describe the project you are working on
The Godot editor 🙂
Describe the problem or limitation you are having in your project
Godot 4.0's Vulkan renderer is currently limited to 16 instance uniform indices. This is likely done to cater to the limitations of mobile GPUs and integrated GPUs.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Looking at how this constant is used in the codebase, it seems possible to replace it with a project setting that is read once when the project starts. This would allow using a greater limit on desktop platforms, such as 32.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
.mobile
override to this project setting that defaults to 16.If this enhancement will not be used often, can it be worked around with a few lines of script?
No, as the current constant is hardcoded. Changing it requires recompiling the editor and export templates.
Is there a reason why this should be core and not an add-on in the asset library?
See above.
The text was updated successfully, but these errors were encountered: