mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fixed performance issues and did a dummy impl
This commit is contained in:
parent
6f63e765a0
commit
9332aba334
3 changed files with 13 additions and 3 deletions
|
@ -63,7 +63,6 @@
|
||||||
#include "llvm/Config/llvm-config.h"
|
#include "llvm/Config/llvm-config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
LOG_CHANNEL(sys_log, "SYS");
|
LOG_CHANNEL(sys_log, "SYS");
|
||||||
|
|
||||||
// Preallocate 32 MiB
|
// Preallocate 32 MiB
|
||||||
|
|
|
@ -951,8 +951,8 @@ void gui_application::InitializeCallbacks()
|
||||||
callbacks.display_sleep_control_supported = [](){ return display_sleep_control_supported(); };
|
callbacks.display_sleep_control_supported = [](){ return display_sleep_control_supported(); };
|
||||||
callbacks.enable_display_sleep = [](bool enabled){ enable_display_sleep(enabled); };
|
callbacks.enable_display_sleep = [](bool enabled){ enable_display_sleep(enabled); };
|
||||||
|
|
||||||
//callbacks.gamemode_supported = [](){ return gamemode_supported(); };
|
callbacks.gamemode_supported = [](){ return gamemode_supported(); };
|
||||||
//callbacks.enable_gamemode = [](bool enabled){ enable_gamemode(enabled); };
|
callbacks.enable_gamemode = [](bool enabled){ enable_gamemode(enabled); };
|
||||||
|
|
||||||
callbacks.check_microphone_permissions = []()
|
callbacks.check_microphone_permissions = []()
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,6 +96,10 @@
|
||||||
#define RPCS3_UPDATE_SUPPORTED
|
#define RPCS3_UPDATE_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef GAMEMODE_AVAILABLE
|
||||||
|
#include "../gamemode_control.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
LOG_CHANNEL(gui_log, "GUI");
|
LOG_CHANNEL(gui_log, "GUI");
|
||||||
|
|
||||||
extern atomic_t<bool> g_user_asked_for_frame_capture;
|
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();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue