From 1f2b6578de49ff67f0cd89eaae0343c36b3a3f27 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 31 Dec 2016 21:40:22 +0900 Subject: [PATCH] Fix increase timing of MAINCNT --- SMILEBASIC/petitcomputer.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index 9f7b3cb..1f09fe0 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -864,6 +864,7 @@ class PetitComputer } } } + maincntRender++; while (SDL_PollEvent(&event)) { switch (event.type) @@ -982,7 +983,6 @@ class PetitComputer long delay = (1000/60) - (cast(long)SDL_GetTicks() - profile); if(delay > 0) SDL_Delay(cast(uint)delay); - maincntRender++; } } catch(Throwable t)