Set performance level

This commit is contained in:
twinaphex 2014-06-23 15:03:17 +02:00
parent 693ce4d78f
commit 7cfe8b4097

View File

@ -1009,6 +1009,12 @@ size_t retro_get_memory_size(unsigned id)
} }
} }
static void check_system_specs(void)
{
unsigned level = 7;
environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
}
void retro_init(void) void retro_init(void)
{ {
struct retro_log_callback log; struct retro_log_callback log;
@ -1033,6 +1039,7 @@ void retro_init(void)
if (log_cb) if (log_cb)
log_cb(RETRO_LOG_INFO, "Frontend supports RGB565 - will use that instead of XRGB1555.\n"); log_cb(RETRO_LOG_INFO, "Frontend supports RGB565 - will use that instead of XRGB1555.\n");
#endif #endif
check_system_specs();
} }
void retro_deinit(void) void retro_deinit(void)