Merge pull request from tmickel/feature/wedo-timing

Reduce block execution time (fix )
This commit is contained in:
Tim Mickel 2016-05-05 13:10:48 -04:00
commit c37cf3fe85
4 changed files with 262 additions and 321 deletions

View file

@ -81,7 +81,7 @@ util.inherits(Runtime, EventEmitter);
/**
* How rapidly we try to step threads, in ms.
*/
Runtime.THREAD_STEP_INTERVAL = 1000 / 60;
Runtime.THREAD_STEP_INTERVAL = 1000 / 30;
/**
* Block management: create blocks and stacks from a `create` event

View file

@ -22,7 +22,7 @@ function Sequencer (runtime) {
* In Scratch 2.0, this is set to 75% of the target stage frame-rate (30fps).
* @const {!number}
*/
Sequencer.WORK_TIME = 1000 / 60;
Sequencer.WORK_TIME = 10;
/**
* Step through all threads in `this.threads`, running them in order.

570
vm.js

File diff suppressed because it is too large Load diff

9
vm.min.js vendored

File diff suppressed because one or more lines are too long