Permalink
Browse files

Set performance level

  • Loading branch information...
1 parent 3d409e2 commit f787e88476b495e3d0cd5a438bdd03aaf75b4ae4 @twinaphex twinaphex committed Jun 23, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 libretro/libretro.c
View
@@ -116,6 +116,12 @@ static retro_environment_t environ_cb;
static retro_input_poll_t input_poll_cb;
static retro_input_state_t input_state_cb;
+static void check_system_specs(void)
+{
+ unsigned level = 4;
+ environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
+}
+
void retro_init(void)
{
enum retro_pixel_format rgb565;
@@ -134,6 +140,7 @@ void retro_init(void)
if(environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &rgb565) && log_cb)
log_cb(RETRO_LOG_INFO, "Frontend supports RGB565 - will use that instead of XRGB1555.\n");
#endif
+ check_system_specs();
}
void retro_deinit(void)

0 comments on commit f787e88

Please sign in to comment.