From a2eb62402fc240dd9db71af8a4d6eb5cf0638f35 Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Mon, 4 Oct 2021 10:11:24 +0200 Subject: [PATCH] added frame drop logging --- src/emucore/EmulationWorker.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/emucore/EmulationWorker.cxx b/src/emucore/EmulationWorker.cxx index b5f7f8bfb..39ce5ce08 100644 --- a/src/emucore/EmulationWorker.cxx +++ b/src/emucore/EmulationWorker.cxx @@ -20,6 +20,7 @@ #include "EmulationWorker.hxx" #include "DispatchResult.hxx" #include "TIA.hxx" +#include "Logger.hxx" using namespace std::chrono; @@ -238,10 +239,13 @@ void EmulationWorker::handleWakeupFromWaitingForStop(std::unique_lock go for another emulation timeslice + { + Logger::debug("Frame dropped!"); dispatchEmulation(lock); + } else // Wakeup was spurious, reenter sleep myWakeupCondition.wait_until(lock, myVirtualTime);