From acb17f540cd8bc3a1e50ae4ab22b97620b55673b Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 10 Jul 2023 12:32:21 +0100 Subject: Don't allow interrupts to prevent flickering --- src/game.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 67f7739..1e376a6 100644 --- a/src/game.c +++ b/src/game.c @@ -1,5 +1,6 @@ #include #include +#include #include "keyb.h" #include "vga.h" @@ -272,9 +273,13 @@ next_stage: wait_vsync(); + /* prevent interrupts so updating the audio doesn't result in sprite + * flickering on the less powered machines */ + disable(); player_erase(); entities_draw(); player_draw(); + enable(); if (gameover) { -- cgit v1.2.3