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

#1 2010-01-27 15:32:33

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Upping scratch's memory limit?

During development of my game scratch is crashing so much that I'm about to throw my computer out of the window. Is there ANY way to increase the maximum memory above 512MB?

Offline

 

#2 2010-01-27 16:33:22

littletonkslover
Scratcher
Registered: 2008-12-12
Posts: 1000+

Re: Upping scratch's memory limit?

I think that would be one of the best improvements for Scratch, more memory. That is the biggest problem many face. Whether a AMV, a game, or anything else.


http://www.coxlab.org/images/rat_banner.jpg
That's the dark nature of capitalism. ~ Wonder Showzen

Offline

 

#3 2010-01-27 16:35:54

kcdscratch
Scratcher
Registered: 2008-09-19
Posts: 34

Re: Upping scratch's memory limit?

littletonkslover wrote:

I think that would be one of the best improvements for Scratch, more memory. That is the biggest problem many face. Whether a AMV, a game, or anything else.

I totally agree, more memory would be awesome. I remember on my last gigantic game i cut it short a few levels becuase it kept crashing.


http://scratch.mit.edu/projects/kcdscratch/1202796 check out my Sonic Advance 2 game!

Offline

 

#4 2010-01-27 16:36:53

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Upping scratch's memory limit?

Scratch has much more limiting issues than memory.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2010-01-27 16:37:28

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Upping scratch's memory limit?

If I'm ever going to try and make a 3D wireframe game, I'm gonna need this. I think this is gonna be moved to suggestions in 5...4.....3.....2.....1.....


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#6 2010-01-27 19:51:07

carnack
Scratcher
Registered: 2009-06-30
Posts: 100+

Re: Upping scratch's memory limit?

That's be useful. better games, art, music, plus it could be longer like a REAL game. Ptooey.


http://i853.photobucket.com/albums/ab95/7x9/Carnack.png
Carnack The Bug

Offline

 

#7 2010-01-28 01:50:42

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Upping scratch's memory limit?

RHY3756547, stop making those advanced projects and you won't have that problem.  smile  No, just joking. It'd be nice if the limit could be improved... but then we'd probably get the same issue as with the 10 megabyte limit for uploading Scratch projects.

Last edited by Jonathanpb (2010-01-28 01:51:20)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#8 2010-01-28 03:11:28

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Upping scratch's memory limit?

archmage wrote:

Scratch has much more limiting issues than memory.

Memory is a very important issue. I experience problems with it all the time - EVERY GAME I make crashes scratch...

Offline

 

#9 2010-01-28 04:17:21

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Upping scratch's memory limit?

Um why is the memory and the usage limit thier cant it be like flash use whatever the PC has i dunno u have seen or not but scratch runs quite slow unless the processor comes from a different generations.Nearly Same speed on older processors but quite faster (actually extra faster) on an i7


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#10 2010-01-28 04:20:56

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Upping scratch's memory limit?

Jonathanpb wrote:

RHY3756547, stop making those advanced projects and you won't have that problem.  smile  No, just joking. It'd be nice if the limit could be improved... but then we'd probably get the same issue as with the 10 megabyte limit for uploading Scratch projects.

He is talking bout the RAM usage not the Java Heap


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#11 2010-01-28 04:30:33

jasb
Scratcher
Registered: 2007-11-10
Posts: 100+

Re: Upping scratch's memory limit?

I don't know if it works or that's just a placebo efect but when | change the Scratch.ini file from

Code:

[Global]
DeferUpdate=1
ShowConsole=0
DynamicConsole=0
ReduceCPUUsage=0
ReduceCPUInBackground=0
3ButtonMouse=0
1ButtonMouse=0
UseDirectSound=1
PriorityBoost=1
B3DXUsesOpenGL=1
CaseSensitiveFileMode=0
EnableAltF4Quit=0

to

Code:

[Global]
DeferUpdate=1
ShowConsole=0
DynamicConsole=0
ReduceCPUUsage=1
ReduceCPUInBackground=1
3ButtonMouse=0
1ButtonMouse=0
UseDirectSound=1
PriorityBoost=1
B3DXUsesOpenGL=1
CaseSensitiveFileMode=0
EnableAltF4Quit=0

It seems to work faster.

Offline

 

#12 2010-01-28 08:36:55

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Upping scratch's memory limit?

Jonathanpb wrote:

but then we'd probably get the same issue as with the 10 megabyte limit for uploading Scratch projects.

The 10MB limit isn't related to memory in any way. ^^"


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#13 2010-01-28 09:53:28

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Upping scratch's memory limit?

RHY3756547 wrote:

archmage wrote:

Scratch has much more limiting issues than memory.

Memory is a very important issue. I experience problems with it all the time - EVERY GAME I make crashes scratch...

Hmmm.... is it possible that maybe something is wrong with the installation of Scratch on your machine? Scratch shouldn't crash, even if it runs out of memory. Try reinstalling, and see if that helps.


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#14 2010-01-28 10:01:43

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Upping scratch's memory limit?

RHY3756547 wrote:

archmage wrote:

Scratch has much more limiting issues than memory.

Memory is a very important issue. I experience problems with it all the time - EVERY GAME I make crashes scratch...

True, but even though you have to withstand lag, you can still upload projects. Scratch rarely crashes for me, but it tends to take forever to load. Most projects that experience lag are pretty much unplayable in the online player. Also considering that the next version of scratch will probably be entirely online it would be good if all projects ran correctly online. So I think that fixing the online player is priority #1 and just making scratch faster overall would be good.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#15 2010-01-28 11:37:31

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Upping scratch's memory limit?

Lightnin wrote:

RHY3756547 wrote:

archmage wrote:

Scratch has much more limiting issues than memory.

Memory is a very important issue. I experience problems with it all the time - EVERY GAME I make crashes scratch...

Hmmm.... is it possible that maybe something is wrong with the installation of Scratch on your machine? Scratch shouldn't crash, even if it runs out of memory. Try reinstalling, and see if that helps.

It happens on all computers I use to run scratch and other peoples' when they download my projects. The scripts are so long that scratch simply halts and starts some kind of infinite recursion which uses the whole of Core 1 of my CPU.

Sometimes Squeak pops up a warning before, but most of the time it just freezes.

Scratch uses 512 MB when running my projects, which I think is a bit OTT.

Offline

 

#16 2010-01-28 13:20:03

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Upping scratch's memory limit?

Wow, ok. Well, let's see - can you post a link or two to projects that are good examples of this?  I'll see if I can get my machine to have the same troubles. If so I'll show it to a few of our developers, and see what we can do about fixing it in the next version.

Dumb question, but I need to confirm that you are on 1.4... Also, what is your OS? And the general specs of your computer (processor, memory, etc.)

Thanks!


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#17 2010-01-28 13:32:34

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Upping scratch's memory limit?

http://scratch.mit.edu/projects/RHY3756547/794740
Download this project and scroll down on the scripts real far. When you let go it freezes.

Basically every one sprite one script game I've made, and my bomberman game.

I am using 1.4 on Windows 7 with an Intel Core i7 2.8 GHz and 4 Gig memory.

Offline

 

#18 2010-01-28 14:30:09

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Upping scratch's memory limit?

Actually, that could be a problem. A while back ago, I was doing this PenScript thing with The-Whiz. It has two really long scripts, and often when I'm scrolling them to add something, I have to wait couple of minutes for it to process everything. But the worst thing is when I'm trying to edit a text string in that long script. IT TOOKZ AGEZ. I think it's really important for Scratch Team to focus on performance issues, which may lead to getting rid of the disappearing text bug. It's very probable that if I'd view Scratch process stack when text vanishes, I'd be likely to find an access violation exception. Anyway, I think that the problem may lay in Squeak itself - all virtual machines (except .NET), including Java, have some problems with performance and memory management.


Converting my Scratch projects to Python!

Offline

 

#19 2010-01-28 15:47:04

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Upping scratch's memory limit?

RHY3756547 wrote:

http://scratch.mit.edu/projects/RHY3756547/794740
Download this project and scroll down on the scripts real far. When you let go it freezes.

Basically every one sprite one script game I've made, and my bomberman game.

I am using 1.4 on Windows 7 with an Intel Core i7 2.8 GHz and 4 Gig memory.

Wow, I showed this to one of the Scratch programmers. Awesome!

When Scratch was created, the goal was to make it have a low floor, wide walls, and a high ceiling. What's that stand for, you might ask?

a low floor - (meaning it is easy for people new to programming to quickly get started)
wide walls - (meaning that you can make many different kinds of projects with Scratch)
and a high ceiling - (meaning that it's possible to make projects that are really complex)

I think you've found the ceiling!  smile  Now we have to figure out how to move it up a little higher.

I'm curious - if Scratch crashes every time you scroll down towards the bottom of the script, how did you code it in the first place?


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#20 2010-01-28 16:05:21

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Upping scratch's memory limit?

Lightnin wrote:

RHY3756547 wrote:

archmage wrote:

Scratch has much more limiting issues than memory.

Memory is a very important issue. I experience problems with it all the time - EVERY GAME I make crashes scratch...

Hmmm.... is it possible that maybe something is wrong with the installation of Scratch on your machine? Scratch shouldn't crash, even if it runs out of memory. Try reinstalling, and see if that helps.

Scratch DOES Crash.

I think more people of the Scratch Team should actually be 'advanced' in scratch, and actually have experienced big big big projects.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#21 2010-01-28 16:10:18

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Upping scratch's memory limit?

Lightnin wrote:

RHY3756547 wrote:

http://scratch.mit.edu/projects/RHY3756547/794740
Download this project and scroll down on the scripts real far. When you let go it freezes.

Basically every one sprite one script game I've made, and my bomberman game.

I am using 1.4 on Windows 7 with an Intel Core i7 2.8 GHz and 4 Gig memory.

Wow, I showed this to one of the Scratch programmers. Awesome!

When Scratch was created, the goal was to make it have a low floor, wide walls, and a high ceiling. What's that stand for, you might ask?

a low floor - (meaning it is easy for people new to programming to quickly get started)
wide walls - (meaning that you can make many different kinds of projects with Scratch)
and a high ceiling - (meaning that it's possible to make projects that are really complex)

I think you've found the ceiling!  smile  Now we have to figure out how to move it up a little higher.

I'm curious - if Scratch crashes every time you scroll down towards the bottom of the script, how did you code it in the first place?

Nice metaphor  wink

I think, or at least to me it feels like, when you're making a project, from scratch, its generally lag free. But whenever you download a similar project, or even re-load it the next day to work on it, its more laggy. But this is probably not very true. Obviously RHY3756547 has more experience with lag than I do, so this is just from what I remember.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#22 2010-01-28 16:33:45

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Upping scratch's memory limit?

Lightnin wrote:

RHY3756547 wrote:

http://scratch.mit.edu/projects/RHY3756547/794740
Download this project and scroll down on the scripts real far. When you let go it freezes.

Basically every one sprite one script game I've made, and my bomberman game.

I am using 1.4 on Windows 7 with an Intel Core i7 2.8 GHz and 4 Gig memory.

Wow, I showed this to one of the Scratch programmers. Awesome!

When Scratch was created, the goal was to make it have a low floor, wide walls, and a high ceiling. What's that stand for, you might ask?

a low floor - (meaning it is easy for people new to programming to quickly get started)
wide walls - (meaning that you can make many different kinds of projects with Scratch)
and a high ceiling - (meaning that it's possible to make projects that are really complex)

I think you've found the ceiling!  smile  Now we have to figure out how to move it up a little higher.

I'm curious - if Scratch crashes every time you scroll down towards the bottom of the script, how did you code it in the first place?

I disconnected the scripts and reconnected them bottom up after editing. I also coded the stuff that had to be executed last (character drawing) first, so I didn't have to deal with it later.

And thanks.  smile

Offline

 

#23 2010-01-28 16:52:52

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Upping scratch's memory limit?

...and the method works. In PenScript, there's a lot going on just by if c-blocks, which are easy to edit out-of-stream. But yeah, I think we're hitting the ceiling. And hurting our heads on it.


Converting my Scratch projects to Python!

Offline

 

#24 2010-01-28 17:35:50

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Upping scratch's memory limit?

MyRedNeptune wrote:

Jonathanpb wrote:

but then we'd probably get the same issue as with the 10 megabyte limit for uploading Scratch projects.

The 10MB limit isn't related to memory in any way. ^^"

I know that... but they'd have a similar effect if they got enlarged. People would just want more ("15 megabytes is small, make it 20!"). You know what I mean?  wink


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#25 2010-01-28 20:45:53

carnack
Scratcher
Registered: 2009-06-30
Posts: 100+

Re: Upping scratch's memory limit?

It's be nice to boost it high anough to make games that are really complex with High quality music. Maybe 20MB? I dunno, I don't get Scratch crashed a lot, but i don't want to start.


http://i853.photobucket.com/albums/ab95/7x9/Carnack.png
Carnack The Bug

Offline

 

Board footer