Skip to content

Commit

Permalink
GPUThread: Restore context after backend creation
Browse files Browse the repository at this point in the history
Might help with random VRAM loss? I can't seem to reproduce it now..
  • Loading branch information
stenzek committed Jan 9, 2025
1 parent 40589dc commit 1c9b9ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/gpu_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ bool GPUThread::CreateGPUBackendOnThread(GPURenderer renderer, bool upload_vram,
g_gpu_device->SetGPUTimingEnabled(g_gpu_settings.display_show_gpu_usage);
PostProcessing::Initialize();
ImGuiManager::UpdateDebugWindowConfig();
Internal::RestoreContextAfterPresent();
SetRunIdleReason(RunIdleReason::NoGPUBackend, false);
std::atomic_thread_fence(std::memory_order_release);
return true;
Expand Down

0 comments on commit 1c9b9ca

Please # to comment.