Commit 78f02fc
committed
Benchmark: Don't overflow meter if over 16MHz
The Benchmark accessory uses VBL to gauge the processor speed. The
Virtual ][ emulator version 13.0 decouples VBL from emulation speed,
which is neat; at "high" speed, you can see the CPU runs faster than
1MHz (I see it vary between 0.8MHz and 2MHz). At "maximum" speed it is
way faster than 16MHz, which was overflowing the progress meter!
Add a clamp so that the meter never mis-paints, even at this
ludicrious speed.1 parent 7fd19b0 commit 78f02fc
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
| |||
349 | 358 | | |
350 | 359 | | |
351 | 360 | | |
| 361 | + | |
| 362 | + | |
352 | 363 | | |
353 | 364 | | |
354 | 365 | | |
| |||
360 | 371 | | |
361 | 372 | | |
362 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
363 | 382 | | |
364 | 383 | | |
365 | 384 | | |
366 | 385 | | |
367 | | - | |
368 | 386 | | |
369 | 387 | | |
370 | 388 | | |
| |||
0 commit comments