diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/psp/display_manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/platform/psp/display_manager.cpp b/backends/platform/psp/display_manager.cpp index 5c9f8f92f0..15e0188ebf 100644 --- a/backends/platform/psp/display_manager.cpp +++ b/backends/platform/psp/display_manager.cpp @@ -322,9 +322,7 @@ bool DisplayManager::renderAll() { } #endif /* USE_DISPLAY_CALLBACK */ - if (!isTimeToUpdate()) - return false; // didn't render - + // This is cheaper than checking time, so we do it first if (!_screen->isDirty() && (!_overlay->isDirty()) && (!_cursor->isDirty()) && @@ -333,6 +331,9 @@ bool DisplayManager::renderAll() { return true; // nothing to render } + if (!isTimeToUpdate()) + return false; // didn't render + PSP_DEBUG_PRINT("screen[%s], overlay[%s], cursor[%s], keyboard[%s]\n", _screen->isDirty() ? "true" : "false", _overlay->isDirty() ? "true" : "false", |