diff options
| author | Uri Shaked | 2019-12-07 12:41:31 +0200 |
|---|---|---|
| committer | Uri Shaked | 2019-12-07 12:41:31 +0200 |
| commit | 02373fe7e17339167f9b7d792e5320d1aa5c103a (patch) | |
| tree | 3812cc13427f5d9c266087ad7ad12d233fb79c6f /demo/src/execute.ts | |
| parent | Merge pull request #7 from wokwi/dependabot/npm_and_yarn/serialize-to-js-3.0.1 (diff) | |
| download | avr8js-02373fe7e17339167f9b7d792e5320d1aa5c103a.tar.gz avr8js-02373fe7e17339167f9b7d792e5320d1aa5c103a.tar.bz2 avr8js-02373fe7e17339167f9b7d792e5320d1aa5c103a.zip | |
fix(demo): speed up execution
Diffstat (limited to '')
| -rw-r--r-- | demo/src/execute.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/src/execute.ts b/demo/src/execute.ts index f2c7d82..3a2f162 100644 --- a/demo/src/execute.ts +++ b/demo/src/execute.ts @@ -43,7 +43,7 @@ export class AVRRunner { avrInstruction(this.cpu); this.timer.tick(); this.usart.tick(); - if (this.cpu.cycles % 50000 === 0) { + if (this.cpu.cycles % 500000 === 0) { callback(this.cpu); await new Promise((resolve) => setTimeout(resolve, 0)); if (this.stopped) { |
