mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Revert "(Menu) cleaner dt formulas"
This reverts commit b6e214128abae076da9f1bb603082928ed1fa9e2.
This commit is contained in:
parent
58a25ef419
commit
64527f2cef
@ -26,7 +26,6 @@
|
||||
|
||||
#include <file/file_path.h>
|
||||
#include "../../gfx/gl_common.h"
|
||||
#include "../../performance.h"
|
||||
#include "../../gfx/video_thread_wrapper.h"
|
||||
#include <compat/posix_string.h>
|
||||
|
||||
@ -37,7 +36,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef XMB_DELAY
|
||||
#define XMB_DELAY 10
|
||||
#define XMB_DELAY 0.02
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
@ -1137,7 +1136,7 @@ static void xmb_frame(void)
|
||||
if (!gl)
|
||||
return;
|
||||
|
||||
menu_animation_update(menu->animation, menu->dt / IDEAL_DT);
|
||||
menu_animation_update(menu->animation, menu->dt / 8000000.0);
|
||||
|
||||
glViewport(0, 0, gl->win_width, gl->win_height);
|
||||
|
||||
|
@ -382,10 +382,10 @@ int menu_iterate(retro_input_t input,
|
||||
|
||||
menu->cur_time = rarch_get_time_usec();
|
||||
menu->dt = menu->cur_time - menu->old_time;
|
||||
if (menu->dt >= IDEAL_DT * 2)
|
||||
menu->dt = IDEAL_DT * 2;
|
||||
if (menu->dt <= IDEAL_DT / 2)
|
||||
menu->dt = IDEAL_DT / 2;
|
||||
if (menu->dt > 30000)
|
||||
menu->dt = 30000;
|
||||
if (menu->dt < 4000)
|
||||
menu->dt = 4000;
|
||||
menu->old_time = menu->cur_time;
|
||||
|
||||
if (driver.menu_ctx)
|
||||
|
@ -497,7 +497,7 @@ unsigned menu_input_frame(retro_input_t input, retro_input_t trigger_input)
|
||||
|
||||
menu->mouse.enable = g_settings.menu.mouse_enable;
|
||||
|
||||
menu->delay.count += menu->dt / IDEAL_DT;
|
||||
menu->delay.count += menu->dt / 10000.0;
|
||||
|
||||
if (driver.block_input)
|
||||
trigger_input = 0;
|
||||
|
@ -44,10 +44,6 @@ extern "C" {
|
||||
#define MAX_COUNTERS 64
|
||||
#endif
|
||||
|
||||
#ifndef IDEAL_DT
|
||||
#define IDEAL_DT (1.0 / 60.0 * 1000000.0)
|
||||
#endif
|
||||
|
||||
extern const struct retro_perf_counter *perf_counters_rarch[MAX_COUNTERS];
|
||||
extern const struct retro_perf_counter *perf_counters_libretro[MAX_COUNTERS];
|
||||
extern unsigned perf_ptr_rarch;
|
||||
|
Loading…
x
Reference in New Issue
Block a user