mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
Frame graph + Precise 60 fps timing (#998)
* video info: add frame graph Toggle advanced info with CTRL+F10. Also fixed imgui using gamepad for nav in wrong situations * 60fps! Implemented a timer that accumulates the time spent sleeping and sleeps for the remaining time. Also measure entire PresentThread time instead of just the time spent in Flip. * sceKernelGettimeofday: replace chrono by win32 api. Better performance bb uses this function too much. Consuming almost 30% of cpu time
This commit is contained in:
@@ -703,8 +703,8 @@ static void UpdateGamepads() {
|
||||
const int thumb_dead_zone = 8000; // SDL_gamepad.h suggests using this value.
|
||||
UpdateGamepadButton(bd, io, ImGuiKey_GamepadStart, SDL_GAMEPAD_BUTTON_START);
|
||||
UpdateGamepadButton(bd, io, ImGuiKey_GamepadBack, SDL_GAMEPAD_BUTTON_BACK);
|
||||
UpdateGamepadButton(bd, io, ImGuiKey_GamepadFaceLeft,
|
||||
SDL_GAMEPAD_BUTTON_WEST); // Xbox X, PS Square
|
||||
/*UpdateGamepadButton(bd, io, ImGuiKey_GamepadFaceLeft,
|
||||
SDL_GAMEPAD_BUTTON_WEST); // Xbox X, PS Square*/ // Disable to avoid menu toggle
|
||||
UpdateGamepadButton(bd, io, ImGuiKey_GamepadFaceRight,
|
||||
SDL_GAMEPAD_BUTTON_EAST); // Xbox B, PS Circle
|
||||
UpdateGamepadButton(bd, io, ImGuiKey_GamepadFaceUp,
|
||||
|
||||
Reference in New Issue
Block a user