mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-15 16:01:07 -04:00
Merge pull request #37 from tmickel/feature/wedo-timing
Reduce block execution time (fix #35)
This commit is contained in:
commit
c37cf3fe85
4 changed files with 262 additions and 321 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
9
vm.min.js
vendored
9
vm.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue