I've been trying to optimize the performance of my game for 3 months, but the algorithm to group the sprites does what it wants, wasting a lot of memory.
It's a shame not to be able to use the 4096 sheets because the memory usage is too much.
If you can't get a spritesheet editor, give the option to disable the algorithm, large projects would gain a lot of performance.