feat: added show performance overlay preference (#1209)

This commit is contained in:
Jorys Paulin
2024-05-01 04:37:52 +02:00
committed by GitHub
parent 0531666f38
commit a412100a11
5 changed files with 39 additions and 0 deletions

View File

@@ -1821,6 +1821,9 @@ void Session::execInternal()
// Start rich presence to indicate we're in game
RichPresenceManager presence(*m_Preferences, m_App.name);
// Toggle the stats overlay if requested by the user
m_OverlayManager.setOverlayState(Overlay::OverlayDebug, m_Preferences->showPerformanceOverlay);
// Hijack this thread to be the SDL main thread. We have to do this
// because we want to suspend all Qt processing until the stream is over.
SDL_Event event;