mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 12:40:09 +00:00
Revert "(Menu) Delta timing"
This reverts commit 24f7acb93c5c62c2023cc6f2708cfdacae494e86.
This commit is contained in:
parent
fc75b55219
commit
2e0902fda1
@ -1136,7 +1136,7 @@ static void xmb_frame(void)
|
||||
if (!gl)
|
||||
return;
|
||||
|
||||
menu_animation_update(menu->animation, menu->dt / 7500000.0);
|
||||
menu_animation_update(menu->animation, 0.002);
|
||||
|
||||
glViewport(0, 0, gl->win_width, gl->win_height);
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "../dynamic.h"
|
||||
#include "../frontend/frontend.h"
|
||||
#include "../../retroarch.h"
|
||||
#include "../../performance.h"
|
||||
#include <file/file_path.h>
|
||||
|
||||
/**
|
||||
@ -378,12 +377,6 @@ int menu_iterate(retro_input_t input,
|
||||
int32_t ret = 0;
|
||||
unsigned action = menu_input_frame(input, trigger_input);
|
||||
|
||||
menu_handle_t *menu = menu_driver_resolve();
|
||||
|
||||
menu->cur_time = rarch_get_time_usec();
|
||||
menu->dt = menu->cur_time - menu->old_time;
|
||||
menu->old_time = menu->cur_time;
|
||||
|
||||
if (driver.menu_ctx)
|
||||
{
|
||||
if (driver.menu_ctx->set_texture)
|
||||
|
@ -98,16 +98,11 @@ typedef struct
|
||||
{
|
||||
void *userdata;
|
||||
|
||||
/* Delta timing */
|
||||
float dt;
|
||||
float cur_time;
|
||||
float old_time;
|
||||
|
||||
/* Used for key repeat */
|
||||
struct
|
||||
{
|
||||
float timer;
|
||||
float count;
|
||||
unsigned timer;
|
||||
unsigned count;
|
||||
} delay;
|
||||
|
||||
size_t begin;
|
||||
|
@ -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 / 10000.0;
|
||||
menu->delay.count++;
|
||||
|
||||
if (driver.block_input)
|
||||
trigger_input = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user