aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2014-06-23 15:02:13 +0200
committertwinaphex2014-06-23 15:02:13 +0200
commit496d5596907024138ae72cda9eed05c92a697d18 (patch)
treeb7f3b270891d7549ce84c81dec21a72760cf161e
parent9c79adfd39d78c3b615a7ac0ef4ce472439808ce (diff)
downloadpcsx_rearmed-496d5596907024138ae72cda9eed05c92a697d18.tar.gz
pcsx_rearmed-496d5596907024138ae72cda9eed05c92a697d18.tar.bz2
pcsx_rearmed-496d5596907024138ae72cda9eed05c92a697d18.zip
Set performance level
-rw-r--r--frontend/libretro.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index b8dc36d..c7c14c0 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -974,6 +974,12 @@ static bool find_any_bios(const char *dirpath, char *path, size_t path_size)
#define find_any_bios(...) false
#endif
+static void check_system_specs(void)
+{
+ unsigned level = 6;
+ environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
+}
+
void retro_init(void)
{
const char *bios[] = { "scph1001", "scph5501", "scph7001" };
@@ -1049,6 +1055,7 @@ void retro_init(void)
SaveFuncs.close = save_close;
update_variables(false);
+ check_system_specs();
}
void retro_deinit(void)