mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
ui: Set SDL2 'busy' interval to 16ms
This is the refresh interval used when the user is actively providing input (moving the mouse around) vs idle. Since this refresh event is used to create vsync, this can cause some games which use vsync for timekeeping to advance faster when moving the mouse around or using the keyboard. For example, in the Halo:CE main menu, when moving the mouse around the background animation will run a little faster.
This commit is contained in:
parent
910dadc5ab
commit
e4a1e7ace6
@ -49,7 +49,7 @@ static int guest_x, guest_y;
|
||||
static SDL_Cursor *guest_sprite;
|
||||
static Notifier mouse_mode_notifier;
|
||||
|
||||
#define SDL2_REFRESH_INTERVAL_BUSY 10
|
||||
#define SDL2_REFRESH_INTERVAL_BUSY 16
|
||||
#define SDL2_MAX_IDLE_COUNT (2 * GUI_REFRESH_INTERVAL_DEFAULT \
|
||||
/ SDL2_REFRESH_INTERVAL_BUSY + 1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user