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

#1 2011-08-13 22:50:09

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

How to allocate more CPU

Does anyone know how to allocate more CPU to Scratch?

I have a Mac 10.7 (aka Lion)

But anything that works for Snow Leopard will probably work for me too  big_smile

Thanks in advance!  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#2 2011-08-13 23:28:58

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: How to allocate more CPU

So what do you want basically? Like a better Scratch?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#3 2011-08-13 23:34:31

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: How to allocate more CPU

Thescratch3 wrote:

So what do you want basically? Like a better Scratch?

No to give CPU to priority to Scratch. I did it on Vista and I want to do it on my Mac  wink


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#4 2011-08-13 23:54:29

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: How to allocate more CPU

jji7skyline wrote:

Thescratch3 wrote:

So what do you want basically? Like a better Scratch?

No to give CPU to priority to Scratch. I did it on Vista and I want to do it on my Mac  wink

Give CPU to priority to Scratch? What does that mean?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#5 2011-08-14 00:18:36

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to allocate more CPU

I found this on the Macrumors forums:

DaveL wrote:

Basically, you find the process ID you're interested in via Activity Monitor or by running "ps Ac" in Terminal. I'm assuming that you want to change the priority of a process that's already running. Once you have the PID, then run "sudo renice -20 PID" from the Terminal. You have to have admin privileges to run this command, and you will have to enter your password. The "-20" sets the process priority to its highest value; you would use a priority of "20" to set it to its lowest value. I know this sounds backwards, but it's not.

If you are starting a process from Terminal, use the "nice" command.

You might want to look at "man setpriority" for additional information, although this is *not* a command, it's a system call, i.e. you would use it from within a program you are coding.

Does that help?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2011-08-14 01:29:14

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: How to allocate more CPU

Harakou wrote:

I found this on the Macrumors forums:

DaveL wrote:

Basically, you find the process ID you're interested in via Activity Monitor or by running "ps Ac" in Terminal. I'm assuming that you want to change the priority of a process that's already running. Once you have the PID, then run "sudo renice -20 PID" from the Terminal. You have to have admin privileges to run this command, and you will have to enter your password. The "-20" sets the process priority to its highest value; you would use a priority of "20" to set it to its lowest value. I know this sounds backwards, but it's not.

If you are starting a process from Terminal, use the "nice" command.

You might want to look at "man setpriority" for additional information, although this is *not* a command, it's a system call, i.e. you would use it from within a program you are coding.

Does that help?

No sorry, it is okay.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#7 2011-08-14 05:38:45

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to allocate more CPU

That's why I like Windows, it's more customizable  tongue
The best guess I can guess is use the terminal. There's a lot of hidden stuff there  tongue  And otherwise, do the VM preferences work on Macs? Press F2 while on Scratch and navigate to System Configuration.

Offline

 

Board footer