From 5ed0893d9613a45ba8289a4696d83a80892fff6e Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Tue, 2 Jul 2019 22:27:31 +0200 Subject: [PATCH] tweak --- compiler/src/prog8/astvm/AstVm.kt | 2 +- examples/mandelbrot.p8 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/src/prog8/astvm/AstVm.kt b/compiler/src/prog8/astvm/AstVm.kt index 0962627b6..a27d75371 100644 --- a/compiler/src/prog8/astvm/AstVm.kt +++ b/compiler/src/prog8/astvm/AstVm.kt @@ -286,7 +286,7 @@ class AstVm(val program: Program) { private fun executeStatement(sub: INameScope, stmt: IStatement) { instructionCounter++ - if (instructionCounter % 100 == 0) + if (instructionCounter % 200 == 0) Thread.sleep(1) when (stmt) { is NopStatement, is Label, is Subroutine -> { diff --git a/examples/mandelbrot.p8 b/examples/mandelbrot.p8 index f32b08784..e2f9e0e31 100644 --- a/examples/mandelbrot.p8 +++ b/examples/mandelbrot.p8 @@ -39,9 +39,9 @@ } } - float duration = floor(((c64.TIME_LO as float) + float duration = ((c64.TIME_LO as float) + 256.0*(c64.TIME_MID as float) - + 65536.0*(c64.TIME_HI as float))/60.0) + + 65536.0*(c64.TIME_HI as float))/60.0 c64scr.plot(0, 21) c64scr.print("finished in ") c64flt.print_f(duration)