How to handle very large spritesheets that make Godot crash?

Godot Version

4.3

Question

We are working on a point and click adventure and we have a character spritesheet that is very large: W: 37496px | H: 968px (9,2 MB).

Godot crashes when I try to open this project with this file in the project files. How can we work with very large spritesheets like this one in Godot?

2024-11-05 09:52:57.578 Godot[20736:598904] +[IMKClient subclass]: chose IMKClient_Legacy
2024-11-05 09:53:02.745 Godot[20736:598904] +[IMKInputSession subclass]: chose IMKInputSession_Legacy
-[MTLTextureDescriptorInternal validateWithDevice:]:1405: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has width (37496) greater than the maximum allowed size of 16384.
'
[1]    20736 abort      '/Applications/Godot 4.3.app/Contents/MacOS/Godot' 

Wow that is massive!

It is telling you that it is bigger than the allowed size here:
MTLTextureDescriptor has width (37496) greater than the maximum allowed size of 16384.

Unless there is a setting in the project settings for this that I am unaware of I would guess that you will have to split your sprite sheet into smaller sheets.

2 Likes

so i read it wrong, i thought it was just 3.7k px. that’s really large then, @nubels needs to cut it down

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.