Pages: 1
That is, replace unconditional yields you put in stack under blocks to be run and on top of rerun iteration block with conditional yields, which take place only when needed.
One robust solution is to have a flag "do conditional yields", set it to false at the beginning of each step for a process, and set it to true when any of mentioned iteration block is processed (that is, those 3 things are put in the stack). If the body runs to the end, the flag is true and yield takes place. If the body is yielded by any other means, in the subsequent step the flag will be false and new iteration will immediately take place.
Last edited by deerel (2008-08-26 19:34:12)
Offline
You can actually make Scratch run super-fast, by shift clicking on the extras menu, and selecting "turbo speed" under the set-single-stepping option. It's probably a lot faster than you can handle, though...
Offline
Jens wrote:
You can actually make Scratch run super-fast, by shift clicking on the extras menu, and selecting "turbo speed" under the set-single-stepping option. It's probably a lot faster than you can handle, though...
Jens, it's not about getting it superfast in development environment, it's about eliminating unneccessary infrastructure cost in real run... so that one can use broadcast and wait without considering "hm, if I use this, my project gets 2x slower..."
Last edited by deerel (2008-10-15 11:02:17)
Offline
Pages: 1