This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-06-30 13:21:54

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Costumes and Memory

First of all, I choose to post this post here because it sounds like a technical feature. This probably won't help any of you program any better, this is just a curious thing I noticed. I was making 64 costumes for a sprite that all looked almost exactly the same. They were all a circle with two lines drawn through them and they all were 32 by 32. The curious thing is that the first picture was 0.49 KB, the next was 0.47 KB, then 0.44, then 0.36, and so on, becoming worth less and less memory. They stopped becoming less when they became worth 0.06 KB (on the 17th costume). Why did they become less and less memory? Can Scratch remember costumes by using parts of other costumes? It just seemed strange. I don't expect any answers or comments, but I am hopeful. Summary: When you have many costumes that were almost exactly the same, why do the latter ones take up less memory?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#2 2010-06-30 13:25:34

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Costumes and Memory

Ive had a simmilar thing with the same sized costumes, all looking diffrent!


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-06-30 14:27:59

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Costumes and Memory

Maybe the calculating of the actual size (in Kilo Bytes) of the sprite may be inaccurate.


http://i42.tinypic.com/2rot8c2.png

Offline

 

#4 2010-06-30 15:13:04

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Costumes and Memory

Yes...Scratch is inaccurate with those calculations. I don't look at those calculations anyways... tongue


Hai.

Offline

 

Board footer