Yes, I understand that.
But if 266x52 fit only in a 512x512 then 57x36 should fit in a 64x64, right? and they also should fit to 128x128.
What I meant was, why after export some sprites are put into a sheets and others are not.
If those three 57x36 frames and two 266x52 frames after export end up respectively on three 64x64 and two 512x512 then I would now what is going on and try to improve that. But currently I have no idea how C2 is deciding which sprites export as a sheets and which ones as a single files.
I made some more test, and I still don't know how it works
3 sprites, every one have 3 frames
test 1
sprite1 - 3 frames 48x48
sprite2 - 3 frames 32x32
sprite3 - 3 frames 64x64
- every frame is exported separately - 9 images after export
test 2
sprite1 - 3 frames 42x66
sprite2 - 3 frames 76x44
sprite3 - 3 frames 57x23
- every frame is exported separately - 9 images after export
test 3
sprite1 - 3 frames 120x99
sprite2 - 3 frames 258x258
sprite3 - 3 frames 160x160
- every frame is exported separately - 9 images after export
test 4
sprite1 - 3 frames 42x66
sprite2 - 2 frames 32x32, one frame 64x64
sprite3 - 3 frames 57x23
- Sprite1 and Sprite 3 - every frame is exported separately - 6 images after export
- Sprite2 - this one exports to one 128x128 file and one 64x64 - 2 images after export
It looks from these very simple tests that only frames which differ in size are sprite sheeted. But in tests only, In my game I have lots of frames with different size and they are still randomly exported as single images or sprite sheets!