Fixed performance issues and did a dummy impl

This commit is contained in:
adas20 2025-06-25 14:50:20 -04:00
parent 6f63e765a0
commit 9332aba334
3 changed files with 13 additions and 3 deletions

View file

@ -63,7 +63,6 @@
#include "llvm/Config/llvm-config.h"
#endif
LOG_CHANNEL(sys_log, "SYS");
// Preallocate 32 MiB

View file

@ -951,8 +951,8 @@ void gui_application::InitializeCallbacks()
callbacks.display_sleep_control_supported = [](){ return display_sleep_control_supported(); };
callbacks.enable_display_sleep = [](bool enabled){ enable_display_sleep(enabled); };
//callbacks.gamemode_supported = [](){ return gamemode_supported(); };
//callbacks.enable_gamemode = [](bool enabled){ enable_gamemode(enabled); };
callbacks.gamemode_supported = [](){ return gamemode_supported(); };
callbacks.enable_gamemode = [](bool enabled){ enable_gamemode(enabled); };
callbacks.check_microphone_permissions = []()
{

View file

@ -96,6 +96,10 @@
#define RPCS3_UPDATE_SUPPORTED
#endif
#ifdef GAMEMODE_AVAILABLE
#include "../gamemode_control.h"
#endif
LOG_CHANNEL(gui_log, "GUI");
extern atomic_t<bool> g_user_asked_for_frame_capture;
@ -287,6 +291,13 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot)
update_gui_pad_thread();
// Enable Gamemode
#if defined GAMEMODE_AVAILABLE && defined __linux__
// NOTE: Compiler complains if I pass the config value directly so I have to do this
if (g_cfg.misc.enable_gamemode) {
enable_gamemode(true);
}
#endif
return true;
}