I
IJsandwich
Guest
I have had trouble with files duplicating in the project folder since the release of GMS 2.3, typically due to sprites corrupting. I ended up finding a way to treat this issue and I've been quashing the corruption whenever it appears, which is no longer very much of an issue to me. However, one place where there were still a lot of duplicate files was in the layers folder of my sprites. It would be time-consuming to delete them all, since in the layer folder of a sprite, there's one folder per frame, each containing an image of the frame.
Last night, though, I took the time to delete these duplicates (after making a backup), and found that deleting all of these spare png files actually INCREASED the file size of the sprites folder, and thus, the project as a whole. Here's a quick example that I found: in my backup folder (so all duplicates are still there), for a given frame of a given sprite, the folder contains the frame png and a duplicate. The total folder size is 8 kb, and each image is 4 kb. In the normal folder (with all duplicates deleted), the image is still 4 kb, and is now the only file in the folder, but the folder is now 12 kb.
I confirmed this is a sprite layer only issue by trashing items in other folders both in and out of gamemaker, and none increased in size after removing objects. As a final test, I emptied my trash, which still contained the deleted duplicates. Still no change.
GMS and the game both run fine without these duplicates, so I'm more just curious how GMS uses the layer folders, what they're supposed to contain, and if anyone knows a possible reason for this.
Last night, though, I took the time to delete these duplicates (after making a backup), and found that deleting all of these spare png files actually INCREASED the file size of the sprites folder, and thus, the project as a whole. Here's a quick example that I found: in my backup folder (so all duplicates are still there), for a given frame of a given sprite, the folder contains the frame png and a duplicate. The total folder size is 8 kb, and each image is 4 kb. In the normal folder (with all duplicates deleted), the image is still 4 kb, and is now the only file in the folder, but the folder is now 12 kb.
I confirmed this is a sprite layer only issue by trashing items in other folders both in and out of gamemaker, and none increased in size after removing objects. As a final test, I emptied my trash, which still contained the deleted duplicates. Still no change.
GMS and the game both run fine without these duplicates, so I'm more just curious how GMS uses the layer folders, what they're supposed to contain, and if anyone knows a possible reason for this.