Mark VBlank event likely

This commit is contained in:
wheremyfoodat 2024-01-22 15:07:52 +02:00
parent 88dc2cc864
commit 3c06098ead

View file

@ -128,7 +128,7 @@ void Emulator::pollScheduler() {
scheduler.updateNextTimestamp();
switch (eventType) {
case Scheduler::EventType::VBlank: {
case Scheduler::EventType::VBlank: [[likely]] {
// Signal that we've reached the end of a frame
frameDone = true;
lua.signalEvent(LuaEvent::Frame);