mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-15 07:51:04 -04:00
Reduce amount of time for executing blocks
This commit is contained in:
parent
387c36d99e
commit
dd53b86b8c
2 changed files with 2 additions and 2 deletions
src/engine
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue