mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Start reordering things in the GPU init, with the goal of doing most of it on the loader thread.
This commit is contained in:
1 parent
95550ed624
commit
4fcf5a4fab
9 files changed
+74
-58
No files matched your search
+4
-1
@@ -575,6 +575,8 @@ bool PSP_InitStart(const CoreParameter &coreParam) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Initialize the GPU as far as we can here (do things like load cache files).
|
||||
|
||||
g_bootState = BootState::Complete;
|
||||
});
|
||||
|
||||
@@ -609,7 +611,8 @@ BootState PSP_InitUpdate(std::string *error_string) {
|
||||
INFO_LOG(Log::Loader, "Starting graphics...");
|
||||
Draw::DrawContext *draw = g_CoreParameter.graphicsContext ? g_CoreParameter.graphicsContext->GetDrawContext() : nullptr;
|
||||
// This set the `gpu` global.
|
||||
bool success = GPU_Init(g_CoreParameter.graphicsContext, draw);
|
||||
GPUCore gpuCore = PSP_CoreParameter().gpuCore;
|
||||
bool success = GPU_Init(gpuCore, g_CoreParameter.graphicsContext, draw);
|
||||
if (!success) {
|
||||
*error_string = "Unable to initialize rendering engine.";
|
||||
PSP_Shutdown(false);
|
||||
|
||||
Reference in new issue
Block a user