mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Merge pull request #16156 from hrydgard/opengl-thread-refactor
OpenGL threading refactor
This commit is contained in:
23 files changed
+224
-286
No files matched your search
+5
-5
@@ -327,14 +327,14 @@ void Core_ProcessStepping() {
|
||||
|
||||
// Many platforms, like Android, do not call this function but handle things on their own.
|
||||
// Instead they simply call NativeRender and NativeUpdate directly.
|
||||
void Core_Run(GraphicsContext *ctx) {
|
||||
bool Core_Run(GraphicsContext *ctx) {
|
||||
host->UpdateDisassembly();
|
||||
while (true) {
|
||||
if (GetUIState() != UISTATE_INGAME) {
|
||||
Core_StateProcessed();
|
||||
if (GetUIState() == UISTATE_EXIT) {
|
||||
UpdateRunLoop();
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
Core_RunLoop(ctx);
|
||||
continue;
|
||||
@@ -347,7 +347,7 @@ void Core_Run(GraphicsContext *ctx) {
|
||||
Core_RunLoop(ctx);
|
||||
if (coreState == CORE_POWERDOWN) {
|
||||
Core_StateProcessed();
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -358,10 +358,10 @@ void Core_Run(GraphicsContext *ctx) {
|
||||
// Exit loop!!
|
||||
Core_StateProcessed();
|
||||
|
||||
return;
|
||||
return true;
|
||||
|
||||
case CORE_NEXTFRAME:
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user