ekelundPi
Posts: 2
Joined: Tue Dec 25, 2018 10:33 am

Performance issues using ´Scratch 2.0

Tue Dec 25, 2018 10:57 am

Hi,
I am a total beginner to Rasberry Pi and Scratch 2.0. Bought a Rasberry Pi 3 to my daughter in Christmas gift and a pre-installed card with Noobs. Installation worked fine, and I also updated to the latest software.
However, now when running Scratch 2.0 on the Pi it has obvious performance issues. I am running really beginners projects following a text book Scratch for Kids, but we cannot follow the examples as they start lagging immediately.
Are there any settings that I can change on the Pi to optimize performance with Scratch 2.0?
Are there any known obvious bugs working with Scratch 2.0 that I can correct?
I was considering if screen resolution could be the problem, (use HDMI to a small tv) but have not managed to change to settings that improve. I use default setting.
Can it be some other application running in the background that takes all the performance. I have tried to open up task manager, and a couple of applications are running, but í believe those are related to wifi and others. I have not started up any other program on the Pi.
Or is simply the Pi to weak for running Scratch 2.0?

Any inputs are most helpful. The intension was to learn the daughter the some first simple steps in coding, and basically only to run scratch on the unit.
Thanks!

ghp
Posts: 1352
Joined: Wed Jun 12, 2013 12:41 pm
Location: Stuttgart Germany
Contact: Website

Re: Performance issues using ´Scratch 2.0

Tue Dec 25, 2018 5:23 pm

Hello, most books written for scratch have a laptop or desktop environment in mind. Performance is no issue there. For the raspberry environment, performance is a bottleneck.
One of the most common patterns found are loops which check for some condition. Adding small delays (in most cases acceptable) improve situation.
For scratch 1.4, I have written a blog post about performance. See http://heppg.de/ikg/wordpress/?p=125

If possible, post your script here.

fruitoftheloom
Posts: 19799
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Performance issues using ´Scratch 2.0

Tue Dec 25, 2018 5:25 pm

ekelundPi wrote:
Tue Dec 25, 2018 10:57 am
Hi,
I am a total beginner to Rasberry Pi and Scratch 2.0. Bought a Rasberry Pi 3 to my daughter in Christmas gift and a pre-installed card with Noobs. Installation worked fine, and I also updated to the latest software.
However, now when running Scratch 2.0 on the Pi it has obvious performance issues. I am running really beginners projects following a text book Scratch for Kids, but we cannot follow the examples as they start lagging immediately.
Are there any settings that I can change on the Pi to optimize performance with Scratch 2.0?
Are there any known obvious bugs working with Scratch 2.0 that I can correct?
I was considering if screen resolution could be the problem, (use HDMI to a small tv) but have not managed to change to settings that improve. I use default setting.
Can it be some other application running in the background that takes all the performance. I have tried to open up task manager, and a couple of applications are running, but í believe those are related to wifi and others. I have not started up any other program on the Pi.
Or is simply the Pi to weak for running Scratch 2.0?

Any inputs are most helpful. The intension was to learn the daughter the some first simple steps in coding, and basically only to run scratch on the unit.
Thanks!

The RPF provide resources, see:

https://projects.raspberrypi.org/en/pro ... th-scratch

https://www.raspberrypi.org/magpi/scrat ... -tutorial/
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Buster.
Raspberry Pi Model 2B v1.1

timrowledge
Posts: 1265
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: Performance issues using ´Scratch 2.0

Wed Dec 26, 2018 2:04 am

Try nuScratch - by choosing “Scratch 1.4” from the menu - instead. It may be older but since it was written in a sensible language we were able to rather drastically improve the performance.
You won’t have a few of the blocks the Scratch 2 provides, and the screen layout is slightly different but pretty much any tutorial will be usable. Besides, there are a load of example projects included. The biggest issue is that downloading projects from mit won’t work because they carefully removed that support from us.
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

ekelundPi
Posts: 2
Joined: Tue Dec 25, 2018 10:33 am

Re: Performance issues using ´Scratch 2.0

Wed Dec 26, 2018 5:03 pm

Thanks a lot fohose reply's
Moving to scatch 1.4

mim42
Posts: 1
Joined: Sat Dec 29, 2018 11:20 am

Re: Performance issues using ´Scratch 2.0

Sat Dec 29, 2018 11:30 am

I'm having the exact same issue with a 3B+ and pre-installed card. Scratch 1.4 works well but Scratch 2 is laggy, both in the web version and installed version. Could it be flash related? Scratch 2 is the only flash application that seems to be having trouble so far, though. It would be nice to get the latest version working. The new Scratch 3 beta has the same performance issues as well.

User avatar
Botspot
Posts: 130
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Performance issues using ´Scratch 2.0

Thu Jan 17, 2019 10:36 pm

Try avoiding all graphics effects, especially color effect and brightness.
You can also try holding down the shift key and simultaneously pressing the green flag. This enables "turbo mode".
Press Ctrl-Alt-Delete while Scratch 2 is running. This opens the task manager. Scroll down to the process "Scratch2". Right click it, then set the priority to 10. That should snap it up a bit.
You can also experiment with setting the "GPU Memory" to different amounts to optimize memory usage.
Just run

Code: Select all

sudo rc_gui
and then head over to "Performance".

Even with these improvements, Scratch 2 was still undesirably slow until I overclocked my pi.
It now runs just as fast as on my laptop.
Most people don't think for themselves much anymore. 
Their brains run single core at a speed similar to a Pi 1. Then they go out and purchase smart devices to help them think. Ridiculous!

Not me, I voided my brain's warranty bit due to overclocking.

Return to “Scratch”