mirror of https://github.com/stella-emu/stella.git
added frame drop logging
This commit is contained in:
parent
16b9ebe0f8
commit
a2eb62402f
|
@ -20,6 +20,7 @@
|
||||||
#include "EmulationWorker.hxx"
|
#include "EmulationWorker.hxx"
|
||||||
#include "DispatchResult.hxx"
|
#include "DispatchResult.hxx"
|
||||||
#include "TIA.hxx"
|
#include "TIA.hxx"
|
||||||
|
#include "Logger.hxx"
|
||||||
|
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
|
@ -238,10 +239,13 @@ void EmulationWorker::handleWakeupFromWaitingForStop(std::unique_lock<std::mutex
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Signal::none:
|
case Signal::none:
|
||||||
if (myVirtualTime <= high_resolution_clock::now())
|
if(myVirtualTime <= high_resolution_clock::now())
|
||||||
// The time allotted to the emulation timeslice has passed and we haven't been stopped?
|
// The time allotted to the emulation timeslice has passed and we haven't been stopped?
|
||||||
// -> go for another emulation timeslice
|
// -> go for another emulation timeslice
|
||||||
|
{
|
||||||
|
Logger::debug("Frame dropped!");
|
||||||
dispatchEmulation(lock);
|
dispatchEmulation(lock);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
// Wakeup was spurious, reenter sleep
|
// Wakeup was spurious, reenter sleep
|
||||||
myWakeupCondition.wait_until(lock, myVirtualTime);
|
myWakeupCondition.wait_until(lock, myVirtualTime);
|
||||||
|
|
Loading…
Reference in New Issue