Commit Graph
12985 Commits
Author SHA1 Message Date
Stenzek f591ef20e2 Common: Fix heap overflow when shrinking DynamicHeapArray
Don't think this actually happens anywhere, but just in case.
2026-10-27 02:32:05 +10:00
Stenzek e41bcd36df InputManager: Device notification fixes
Ignore interfaces other than HID/mouse, which caused a full device reload for
unrelated devices. Register before creating sources, and clear the handle on failure.
2026-10-27 01:03:10 +10:00
Stenzek 0310f59ac1 XInputSource: Poll disconnected slots periodically
Device notifications can arrive before XInput sees the controller, so hotplug
was missed. Poll empty slots once per second instead, and drop notifications.
2026-10-27 01:03:10 +10:00
Stenzek e0f6fa82b7 Qt: Remove 'Post Processing Chain' groupbox
Save a little vertical space.
2026-10-27 01:03:08 +10:00
Stenzek a78082b8c1 Qt: Add descriptions to post-processing page 2026-10-27 00:32:48 +10:00
Stenzek 2a0e92fe33 FullscreenUI: Fix 0 point display when achievements disabled 2026-10-27 00:10:43 +10:00
Stenzek 637ff514cb VulkanSwapChain: Switch between FIFO and immediate without recreating
Uses VK_KHR_swapchain_maintenance1, allowing vsync to be disabled while fast forwarding.
2026-10-27 00:10:42 +10:00
Stenzek 5d936496a3 System: Disable vsync while fast forwarding if it can be switched cheaply
Instead of skipping presents with blocking vsync. Vulkan still uses present skipping.
2026-10-26 23:32:53 +10:00
Stenzek 076b133a6d CocoaTools: Use native display mode for real scaling factor
Use the smaller axis, handle rotated displays, and cap at the backing scale.
2026-10-26 21:28:36 +10:00
Stenzek a4f3e5ff76 VideoThread: Ignore zero-sized render window resizes
Fixes the swap chain shrinking to 8x8 on D3D when minimized, and
creating a 0x0 swap chain on Vulkan/Win32 failing.
2026-10-26 20:50:22 +10:00
Stenzek e7efd42615 Qt: Recheck surface size when restoring from minimized
The client area is 0x0 while minimized, and Qt doesn't always send a resize
on restore, leaving the swap chain stuck at 8x8.
2026-10-26 20:50:22 +10:00
Stenzek 16be09afe6 Qt: Skip setting rounded corner state on Windows 10 2026-10-26 20:50:19 +10:00
Daniel Nylander 8c68d4778d Improve Swedish vertex terminology (#3815)
* Improve Swedish vertex terminology

* Translate newly extracted Swedish strings
2026-10-26 16:59:12 +10:00
Stenzek ae7895dae8 Qt: Pick up X11 window size changes from configure events
The window manager can change the size after the window info has been
handed off, e.g. some time after leaving fullscreen. Qt doesn't send a
resize event if it already assumed the new size, or if it rounds to the
same logical size with fractional scaling.

Fixes Vulkan swap chain staying at the fullscreen size after leaving fullscreen.

Gotta love how inconsistent Vulkan is, some drivers return suboptimal, some
return out-of-date, some do either sometimes and sometimes nothing at all.

I hate Linux desktops.
2026-10-26 16:57:35 +10:00
Stenzek 360a35ed10 Qt: Remove sync()/processEvents() hack
Resizes now converge through the normal events, so no need for the nested event loop.
2026-10-26 16:57:32 +10:00
Stenzek 1e7b6d7966 Qt: Accept wayland-egl/wayland-brcm platform names
Same plugin as wayland, just with a forced client buffer integration.
2026-10-26 16:56:54 +10:00
Stenzek 60a5c21f48 GPUDevice: Report swap chain resizes from present calls
Vulkan now prefers the window size over currentExtent, and falls back to
it when suboptimal/out of date, so ImGui and the core thread can catch up.
2026-10-26 16:56:51 +10:00
Stenzek 4b524740dd OpenGLContextEGL: Don't query surface size
Redundant, the window info already has the real size on all platforms.
2026-10-26 16:55:47 +10:00
Stenzek 6cd67d7efb Qt: Round Wayland surface size as per fractional-scale-v1 2026-10-26 16:55:39 +10:00
Stenzek 3c81431b42 Qt: Use X11 server size for surface size
Qt's size is updated as soon as a resize is requested, and is rounded from
its logical size. The window manager applies the size later, and can round
it differently with fractional scaling. The server's size is what EGL and
Vulkan see.
2026-10-26 16:54:41 +10:00
Stenzek ae250ebebd D3D12Device: Use frame latency waitable in exclusive fullscreen 2026-10-26 15:29:41 +10:00
Stenzek f78ecb81ce Settings: Fix VSync/frame pacing help text
VSync is still needed with VRR, sync to host refresh is what VRR users
should turn off.
2026-10-26 15:24:02 +10:00
Víctor "IlDucci dc623cafea Spanish (Spain) translation update 2026/10/25 (#3814)
* Spanish (Spain) translation update 2026/10/25

 - Updated the latest batch of strings.
 - Found out that the entire Android string set was done with MT, threw everything out of the window and into a meat grinder with a conveyor belt straight towards the nearest dump, then rewrote everything by hand.

* Tag/Variable fixing.

Tag/Variable fixing.
2026-10-26 12:30:57 +10:00
Stenzek 84e1db5870 FullscreenUI: Fix clear binding button clearing all 2026-10-25 22:07:54 +10:00
Stenzek e48f86ab98 SDLInputSource: Fix sensor enable early return 2026-10-25 21:59:40 +10:00
Stenzek 5d47724178 System: Sync to host refresh rates that are a multiple of the console's
e.g. 60hz content on a 120hz display, each frame is displayed for two refreshes.
2026-10-25 21:59:36 +10:00
Stenzek 0d1b014ccf ImGuiManager: Don't hover pointer for touchscreens 2026-10-25 21:59:36 +10:00
Stenzek dff25dbc3a FullscreenUI: Improve drag scrolling 2026-10-25 21:59:36 +10:00
Stenzek 296d48a67c ImGuiManager: Ensure DeltaTime can never be negative 2026-10-25 21:59:36 +10:00
Stenzek 0b5b8774cf Common: Add PackedOptionalArray 2026-10-25 21:59:17 +10:00
Stenzek cde17ace5a CDImageCueSheet: Fix single-file pregap and LBA count
The implicit pregap read the first data sectors instead of silence, and
the LBA count excluded it.
2026-10-25 14:38:36 +10:00
Stenzek b2b68c3ced CDImageCCD: Fix LBA count including pregaps twice
Track start is index 1 but length includes the pregap, so the lead-out
position reported by GetTD was too late.
2026-10-25 14:38:36 +10:00
Stenzek 92a7758b53 CDImageCHD: Use generated subchannel Q for virtual pregaps
They aren't in the file, so reading the hunk returned the subcode of the
first data frames instead.
2026-10-25 14:38:36 +10:00
Stenzek 9bbf341beb FullscreenUI: Copy/move checkable choice dialog callback before invoking
If the callback reopened the dialog, it would destroy the running
callback and the option it was passed.
2026-10-25 14:29:03 +10:00
Stenzek b73f8b2731 FullscreenUI: Keep horizontal menu/sidebar state balanced when hidden
Their End functions are always called, so returning early left the draw
split unstarted and the style stack unbalanced.
2026-10-25 14:25:51 +10:00
Stenzek ae4658a7b5 FullscreenUI: Pass p_open through in BeginBlurWindow() 2026-10-25 14:25:51 +10:00
Stenzek f4fe9de23f FullscreenUI: Pass button flags through in MenuButtonFrame() overload
The height-based overload ignored its flags argument.
2026-10-25 14:25:51 +10:00
Stenzek aa9916b882 FullscreenUI: Avoid inverted std::clamp() bounds in dropdown width
A value box wider than half the screen made the lower bound exceed the
upper bound.
2026-10-25 14:25:51 +10:00
Stenzek 49a2ff938e FullscreenUI: Fix indeterminate progress bar sweep range
The bar was interpolated to the absolute end of the box rather than its
width, so it moved too fast and was hidden for part of each cycle.
2026-10-25 14:25:51 +10:00
Stenzek 414d8f2049 FullscreenUI: Clear all dialogs on shutdown
The directory selector, fixed popup and progress dialogs were left open
across a shutdown/reinitialize.
2026-10-25 14:25:51 +10:00
Stenzek 7d64f8223e FullscreenUI: Include directory selector in open dialog checks
Otherwise the menu could be hidden with the directory selector's
callback still pending, and window switches would steal its focus.
2026-10-25 14:25:51 +10:00
Stenzek fd8bcdcf18 FullscreenUI: Fix ForceKeyNavEnabled() clobbering gamepad nav source
The nav input source was assigned from the active ID source, which could
switch a gamepad source to keyboard, e.g. after closing the OSK.
2026-10-25 14:25:51 +10:00
Stenzek 968d20a418 dep/imgui: Don't smooth scroll requests made while window is appearing
They're applied on the following frame, when Appearing is no longer set.

Fixes jump scroll when later options are selected in a choice dialog.
2026-10-25 14:25:51 +10:00
Stenzek c3b58f2563 FullscreenUI: Support drag/swipe scrolling with inertia
Dragging past a threshold cancels the pending button press.
2026-10-25 14:25:51 +10:00
Stenzek 20916bd898 FullscreenUI: Activate toggle buttons on release instead of press
Allows the press to be cancelled, e.g. by a drag/swipe.
2026-10-25 14:25:50 +10:00
Stenzek 8962d84367 GPU/HW: Add missing logging of depth clears 2026-10-25 13:31:29 +10:00
Stenzek dd4a0eb779 GPU/HW: Track dirty depth rect to shrink depth merges/clears
Merges and drawing area clears now only cover what was drawn with depth
since the last clear.
v0.1-12442
2026-10-25 12:48:59 +10:00
Stenzek 8d9f6e8bf7 Data: Update SDL game controller database 2026-10-25 01:37:45 +10:00
Stenzek 7763167550 VideoPresenter: Probe for presentation backlog when gap baseline rises
Otherwise lag left by a long hitch, e.g. a system overlay, resizing window,
etc. looks normal and is never dropped.
2026-10-25 01:37:18 +10:00
Stenzek 3551eef7f8 VideoPresenter: Split late present check out of ShouldPresentFrame() 2026-10-25 01:37:09 +10:00