Set performance level

This commit is contained in:
twinaphex
2014-06-23 15:10:26 +02:00
parent 937810b6fa
commit b078056d4a

View File

@@ -475,6 +475,13 @@ void retro_get_system_av_info(struct retro_system_av_info *info)
info->timing.sample_rate = 32040.5;
}
static void check_system_specs(void)
{
// TODO - when we get it running at fullspeed on PSP, set to 4
unsigned level = 5;
environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
}
void retro_init(void)
{
enum retro_pixel_format rgb565;
@@ -486,6 +493,7 @@ void retro_init(void)
log_cb.log(RETRO_LOG_INFO, "Frontend supports RGB565 - will use that instead of XRGB1555.\n");
#endif
PowerNES();
check_system_specs();
}
static void emulator_set_input(void)