|
19 | 19 | * If not, see <http://www.gnu.org/licenses/>. |
20 | 20 | */ |
21 | 21 |
|
22 | | -#include "ANGLE/GLES2/gl2.h" |
23 | | -#include "ANGLE/GLES3/gl32.h" |
24 | 22 | #include "input/input_driver.h" |
25 | | -#include <stdbool.h> |
26 | 23 | #ifdef _WIN32 |
27 | 24 | #ifdef _XBOX |
28 | 25 | #include <xtl.h> |
@@ -4700,7 +4697,7 @@ static void core_init_libretro_cbs(runloop_state_t *runloop_st, |
4700 | 4697 | { |
4701 | 4698 | retro_input_state_t state_cb = core_input_state_poll_return_cb(); |
4702 | 4699 |
|
4703 | | - //runloop_st->current_core.retro_set_video_refresh(video_driver_frame); |
| 4700 | + runloop_st->current_core.retro_set_video_refresh(video_driver_frame); |
4704 | 4701 | runloop_st->current_core.retro_set_audio_sample(audio_driver_sample); |
4705 | 4702 | runloop_st->current_core.retro_set_audio_sample_batch(audio_driver_sample_batch); |
4706 | 4703 | runloop_st->current_core.retro_set_input_state(state_cb); |
@@ -8024,8 +8021,6 @@ bool core_set_default_callbacks(void *data) |
8024 | 8021 | return true; |
8025 | 8022 | } |
8026 | 8023 |
|
8027 | | - |
8028 | | - |
8029 | 8024 | #ifdef HAVE_NETWORKING |
8030 | 8025 | /** |
8031 | 8026 | * core_set_netplay_callbacks: |
@@ -8380,17 +8375,8 @@ void core_run(void) |
8380 | 8375 | input_driver_poll(); |
8381 | 8376 | else if (late_polling) |
8382 | 8377 | current_core->flags &= ~RETRO_CORE_FLAG_INPUT_POLLED; |
8383 | | - struct timespec start, end; |
8384 | | - long long diff_us; |
8385 | | - clock_gettime(CLOCK_MONOTONIC, &start); |
| 8378 | + |
8386 | 8379 | current_core->retro_run(); |
8387 | | - clock_gettime(CLOCK_MONOTONIC, &end); |
8388 | | - diff_us = (end.tv_sec - start.tv_sec) * 1000000LL + |
8389 | | - (end.tv_nsec - start.tv_nsec) / 1000LL; |
8390 | | - if (diff_us > 5000) { // 超过 5ms 才记录 |
8391 | | - double fps = 1000000.0 / diff_us; |
8392 | | - RARCH_LOG("[PERF] FPS: %.2f\n", fps); |
8393 | | - } |
8394 | 8380 |
|
8395 | 8381 | #ifdef HAVE_GAME_AI |
8396 | 8382 | { |
|
0 commit comments