Discuss Scratch

karatekid1998
Scratcher
7 posts

Tips for optimizing my math, list, and variable heavy project?

I created a modified version of what is called a weasel program, and I'm trying to increase its speed.
Link: Custom Weasel Program
Any tips to increase speed when dealing with lists?

Thanks for reading this, any advice would be appreciated.
–Karatekid1998

Last edited by karatekid1998 (Aug. 25, 2013 02:22:49)


Please check out my game Cloud Clicker! It is an incremental MMO!
Any feedback would be helpful and appreciated!
eaglgenes101
New to Scratch
100+ posts

Tips for optimizing my math, list, and variable heavy project?

I don't think I can help you much. Evolution just happens to be fairly slow, at least for creating new things.
drmcw
Scratcher
1000+ posts

Tips for optimizing my math, list, and variable heavy project?

I'd get rid of the forever loop to work out the timer and just use reset timer at the beginning and read the timer at the end to find out how quick things went. That loop is just a waste and will then mean you can start using run without screen refresh in your define block. Try and get as much into a define block and run without screen refresh and it'll run as fast as it can( e.g the repeat loop in the setup done broadcast could go into another define block).
You can turn off screen refresh in your current define block for an easy boost.

Couldn't resist so here's a remx, it's gone from 30 seconds to 2 seconds on my PC, so its an order of magnitude faster now.

Last edited by drmcw (Aug. 25, 2013 05:57:32)


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?

Powered by DjangoBB