From 59c93529e838c628c4124168915fb7e61320f37b Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sun, 17 May 2026 13:18:25 -0400 Subject: [PATCH] Keyboard now works. --- src/main.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d9249f2..44c9163 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -93,16 +93,8 @@ int main(int argc, char* argv[]) { Display display{window, {0, 0}, {1000, 1000}}; - while (display.active()) { - auto currentTime = std::chrono::high_resolution_clock::now(); - float dt = std::chrono::duration(currentTime - lastCycleTime).count(); - - if (dt > cycleDelay) - { - lastCycleTime = currentTime; - chip8.Cycle(); - } - + while (true) { + chip8.Cycle(); display.update(chip8); display.render(); }