Commit Graph
13092 Commits
Author SHA1 Message Date
PeterDelta f606b4412a Update duckstation-qt_es.ts (#3820) 2026-11-03 00:00:49 +10:00
Stenzek 144f903fa9 MSBuild: Migrate to slnx 2026-11-02 22:37:22 +10:00
Stenzek 94e12317c6 CPU/PGXP: Don't take fraction from the field below when extracting bitfields
Syphon Filter 3 extracts y from packed vertices with sll 10; sra 21, which
gave the x's top bits as a fraction.
2026-11-02 20:53:00 +10:00
Stenzek 586deb5927 CPU/PGXP: Average depth in ADD when both sides have depth
Gives screen space midpoints (a + ((b - a) >> 1)) their own depth instead
of a's, fixes warped textures in Syphon Filter 3.
2026-11-02 20:53:00 +10:00
Stenzek 2e356ae8be CPU/PGXP: Only move native upper half bits into x for packed right shifts
Fixes exploding car shadows in Driver 2 with CPU mode, which averages packed vertices.
2026-11-02 20:53:00 +10:00
Stenzek 4f6b5313bd FullscreenUI: Fix game list directories populating from wrong list
Wasn't shown in game properties, but still technically incorrect.
2026-11-02 20:02:43 +10:00
Stenzek 9add9b7816 SettingsInterface: Add GetStringListSize()
Avoids string allocations when only the count is needed in cheats.
2026-11-02 20:01:36 +10:00
Stenzek 6689bb4ae2 Settings: Drop redundant string defaults when parsing enums 2026-11-02 19:58:32 +10:00
Stenzek 184a4bc63a Bus: Base forced full RAM mapping on installed RAM size
Save states can change the RAM size without updating the setting.
2026-11-02 19:50:49 +10:00
Stenzek 2aa3d9d579 CPU: Define memory handler lookups in private header
Fixes core-tests failing to link in non-Debug builds.
2026-11-02 19:50:49 +10:00
Stenzek 9ab39541b2 Settings: Make depth normalisation option based on depth buffer
Then enable PGXP-CPU and depth normalization for Eutechnyx engine games.

Improves jitter, but doesn't eliminate it completely.
2026-11-02 19:50:23 +10:00
Stenzek e86770e527 CPU/PGXP: Drop upper half fraction when SLL shifts out its bits
Fixes exploding vertices in 007 Racing, which packs vertices as bitfields.
2026-11-02 00:53:27 +10:00
Stenzek 7a8335eca3 DMA: Drop redundant mask in linked list terminator check
The next pointer is already masked to 24 bits.
2026-11-02 00:18:25 +10:00
Stenzek dde19bd088 CPU/PGXP: Fix recompiled mtc0 validating its source with a garbage value
The recompiler only passes the source register, so take that alone.
2026-11-02 00:18:25 +10:00
Stenzek e762de1a24 CPU/PGXP: Treat $zero as precise
Constants built from $zero are precise, and storing it no longer drops
the precision of the other half of a word.
2026-11-02 00:18:25 +10:00
Stenzek e41a0fb95e CPU/PGXP: Fix swr into the upper half invalidating the lower half
The upper half kept its valid flag with the new native value.
2026-11-02 00:18:25 +10:00
Stenzek ebdbe9619f CPU/PGXP: Fix interpreter immediate moves in memory mode
addiu/ori/xori with a zero immediate used the rd field, which is part of the
immediate, so the move went to $zero.
2026-11-02 00:18:25 +10:00
Stenzek d3d7a12daa CPU/PGXP: Move value flags to the header
So the tests don't need their own copy.
2026-11-02 00:18:25 +10:00
Stenzek ca0dfa540f CPU/PGXP: Don't call PGXP for instructions that write $zero
Loads into $zero and every write in the interpreter replaced its PGXP value.
2026-11-02 00:18:19 +10:00
Stenzek e4a8496050 Bus: Force full RAM mapping should not apply to default RAM size 2026-11-01 20:29:50 +10:00
PeterDelta c3c73e1fad Update duckstation-qt_es.ts (#3819) 2026-11-01 20:28:40 +10:00
Stenzek 363ba68f7f Bus: Add option to force mapping of all installed RAM
Retail BIOSes only map 8MB, so 16MB was unusable without a patched BIOS.
Also available as a patch setting override.
2026-11-01 20:07:04 +10:00
Stenzek 30285103d5 CPU: Report the virtual fetch address in EPC on bus errors
Instruction bus errors used the masked physical address as EPC and set
BadVaddr, which bus errors don't change.
2026-11-01 19:40:47 +10:00
Stenzek 042261b596 CPU/CodeCache: Size LUTs to installed RAM and PIO device
Allocate the code and block LUTs as one block on system initialize, covering
at least 8MB of RAM, and EXP1 only when a PIO device is enabled.

Reallocate when a state changes the RAM size or the PIO device changes.
2026-11-01 19:40:47 +10:00
Stenzek 6255613944 CPU: Raise bus error on cached fetch from unmapped memory
Interpreter icache fills previously read zeros instead.
2026-11-01 19:40:46 +10:00
Stenzek 37f378220b System: Support 4-16MB expanded memory
You will need to re-configure this setting if you were previously using
the 8MB option.
2026-11-01 19:40:45 +10:00
Stenzek 8410fb55db Qt: Remove a few duplicate strings 2026-11-01 16:27:12 +10:00
Stenzek 919f35c833 Qt: Save a few bytes for speedup values 2026-11-01 14:05:24 +10:00
Stenzek 4375f646bb Android: Update translation strings 2026-10-31 23:06:36 +10:00
Stenzek 7063868c74 VideoPresenter: Add subframe presentation
Can be used for CRT shaders, black frame insertion, etc.
2026-10-31 22:03:20 +10:00
Stenzek e80857d868 VideoPresenter: Only count a missed vblank once per on-time present 2026-10-31 22:03:20 +10:00
Stenzek 310ee0217a FullscreenUI: Add DrawIntRangeSetting() with formatter 2026-10-31 22:03:20 +10:00
Stenzek dc8678310e dep/imgui: Add ImGuiSliderFlags_NoFormat 2026-10-31 22:03:19 +10:00
Stenzek 1bc5405c41 System: Include EXE override in save state
Fixes it getting lost when restarting with a normal state, or getting
disconnected from the actual file when there is no media and we are just
running ps-exe.
2026-10-31 21:28:02 +10:00
Stenzek 3fca4f4380 D3D12Device: Log debug layer messages
Register an ID3D12InfoQueue1 message callback when the debug device is
enabled, so that validation messages end up in the log, similar to the
Vulkan debug messenger. Useful for users without a debugger attached, and
for the regression tester.

Also drop break-on-error/warning, breakpoints can be placed in the
callback instead.
2026-10-31 21:27:54 +10:00
Stenzek 70ed7d646b D3D12Device: Fix stream buffer allocation catching up to GPU position
When allocating behind the GPU, the full space up to the GPU position was
handed out. If a caller committed all of it (e.g. vertex batches that fill
the mapped space), the offset would equal the GPU position, which the
allocator interprets as the GPU having caught up, and subsequent
allocations would overwrite data still referenced by the current command
list. Reserve one byte, matching the Vulkan stream buffer.

Fixes corruption in Jumping Flash in the regression tester, where command
lists can span hundreds of frames due to presentation being skipped.
2026-10-31 20:48:27 +10:00
Stenzek 0ff4c50bf5 Settings: Pack all bitfields together 2026-10-31 16:52:30 +10:00
Stenzek 2e97f811c0 GameDB: Reset SPU on game start for games that loop shell reverb 2026-10-31 16:52:30 +10:00
Stenzek e413d95913 System: Add option to reset SPU on game start
This is a hack to provide a better experience, because users like to
report this as a "bug" when it is in fact console behaviour.

It is disabled in safe mode.

Some games never initialise the SPU's reverb on startup, they only clear
the reverb master enable bit in SPUCNT. The shell's reverb configuration,
work area and output volume are left in place, and with the master enable
clear the reverb unit stops writing to its buffer but still reads it and
mixes it into the output. Whatever was in the buffer when the game took
over loops for the rest of the session.

This also happens on console. How loud the echo is depends on how far the
shell's reverb had decayed before the game cleared the enable bit, i.e.
how long the BIOS takes to read the executable, so faster CD-ROM read and
seek speeds make it worse. It will also be less apparent on older consoles
with more drive wear. It does not happen with fast boot, as the shell
never runs and the SPU is still in its power-on state.

The new option and ResetSPUOnGameStart trait reset the SPU when the game's
entry point is reached, which gives the same SPU state as a fast boot.
2026-10-31 16:52:30 +10:00
Stenzek d986c819f9 Qt: Remove redundant function 2026-10-31 16:16:46 +10:00
Stenzek e1378867dd Qt: Attach log channels menu to button 2026-10-31 16:16:45 +10:00
Stenzek e81eb6445a Qt: Attach cheat import menu to button 2026-10-31 16:16:45 +10:00
Stenzek a9ecb5d842 Qt: Attach memory card editor import/extract icon menus to buttons 2026-10-31 16:16:45 +10:00
Stenzek ca049fc0e7 Data: Include Folly in thirdparty.html
Also update Remix Icon license.
2026-10-31 16:16:45 +10:00
Stenzek de1834c77d GameList: Fall back to first disc icon for multi-disc games
And fix the custom title not getting passed.
2026-10-31 15:45:54 +10:00
Stenzek 7c2f343ae3 System: Centralise disc change menu enumeration
Also add icons to the list.
2026-10-31 15:45:21 +10:00
Stenzek 5b9147b497 Image: Expose static methods for flip/svg 2026-10-31 15:37:48 +10:00
Stenzek 9b5fd94633 Qt: Replace AsyncPixmapLoader with an async task
Lookup and decode now happen off the UI thread.
2026-10-31 15:37:48 +10:00
Stenzek e0704543dc Qt: Fix game list icon cache lookup using game path instead of URL 2026-10-31 15:28:29 +10:00
Stenzek 4d2f64d42e FullscreenUI: Use plural formatting for binding timeout 2026-10-31 15:20:30 +10:00