Save some work when the displayed buffer isn't dirty.

This commit is contained in:
Henrik Rydgard 2013-07-18 10:46:09 +02:00
parent 47b65ce200
commit a41cd7bdba

View File

@ -460,9 +460,8 @@ void hleEnterVblank(u64 userdata, int cyclesLate) {
// Check first though, might've just quit / been paused.
if (coreState == CORE_RUNNING && gpu->FramebufferDirty()) {
coreState = CORE_NEXTFRAME;
gpu->CopyDisplayToOutput();
}
gpu->CopyDisplayToOutput();
}
// Returning here with coreState == CORE_NEXTFRAME causes a buffer flip to happen (next frame).