Commit graph

4,790 commits

Author SHA1 Message Date
DarthMew
1347c7eb28 Remove some unused stuff 2022-03-27 18:31:47 +02:00
DarthMew
d0b4df21a8
Remove some half step overclock values 2022-03-23 01:11:34 +01:00
DarthMew
163d3b765e
Merge pull request #9 from realnc/improve_audio_frame_pacing
Don't submit audio samples to frontend multiple times mid-frame
2022-03-22 21:52:23 +01:00
Nikos Chantziaras
0d46e464d2
Don't submit audio samples to frontend multiple times mid-frame
The core is submitting audio samples to the frontend in multiple calls
before the current video frame loop has finished. This is a bad idea, as
the retro_audio_sample_batch_t callback is a blocking call, since the
frontend performs audio sync.

When using a low audio latency setting in RetroArch (like 5ms), audio
dropouts can occur. It's also possible that input lag is increased,
since video frames are presented later than they could have. The calls
to retro_audio_sample_batch_t can block for over 10ms, unnecessarily
delaying video frame presentation.

This commit fixes the issue by submitting all accumulated audio samples
at the end of the current video frame. Since the rendered audio is
stored in a HeapFIFOQueue which is not contiguous, an extra buffer is
used to consolidate all samples into a contiguous buffer. The buffer is
a stack allocated std::array so there's no memory allocation involved.
2022-03-22 22:16:43 +02:00
DarthMew
e45023d624
Make the overclock values more granular 2022-03-22 18:26:31 +01:00
DarthMew
74b958ceae
Remove part or the clarification that isn't true anymore 2022-03-09 20:20:16 +01:00
DarthMew
8fc9e20c98
Clarify this quirk 2022-03-07 04:19:50 +01:00
DarthMew
c78abcff5c
Reimplement 7ce707714c 2022-03-06 16:40:02 +01:00
DarthMew
4173742da8
Revert 7ce707714c 2022-03-04 15:18:16 +01:00
DarthMew
cb7cae4305 Remove unused gdb protocol & files 2022-03-02 23:22:48 +01:00
DarthMew
e479869a1c
Small fix 2022-03-02 22:34:27 +01:00
DarthMew
0ffacee7b4 Build fix 2022-03-02 22:03:35 +01:00
DarthMew
e1a8bfb643 Add libretro-common as dependency, remove frontend-common in src 2022-03-02 20:28:40 +01:00
DarthMew
9e1bf579e5
Remove non-functioning 16:10 aspect ratio 2022-03-02 18:19:10 +01:00
DarthMew
84168a8bf4
4:3 is a better default 2022-03-01 21:15:13 +01:00
DarthMew
dcff9d884d Dynamically hide software and hardware renderer specific options 2022-03-01 03:31:20 +01:00
DarthMew
27fec4286f
Revert 365fe8f6ef 2022-02-28 18:50:22 +01:00
DarthMew
365fe8f6ef
Set default aspect ratio to 4:3 2022-02-28 17:04:15 +01:00
DarthMew
7b15d79eb4 Exclude D3D12 renderer files for Libretro 2022-02-22 23:05:46 +01:00
DarthMew
43e2553e00 Drop Imgui 2022-02-22 20:15:57 +01:00
DarthMew
a094276d6f
Reword this 2022-02-22 19:40:52 +01:00
DarthMew
542c6d14af Small touchup 2022-02-22 17:39:36 +01:00
DarthMew
4335a2ad7e Reduce the amount of files in the repo & rename 'duckstation-libretro' to 'libretro' 2022-02-21 23:16:22 +01:00
DarthMew
d750ee9f51 Implement controller based option hiding, Revert b416862753, & rename 'Auto' & 'Par 1:1' to 'Corrected (Auto) & 'Uncorrected (Par 1:1)' 2022-02-19 22:34:04 +01:00
DarthMew
2b653d7e2d
Revert 9bedcf75d7 2022-02-18 14:33:44 +01:00
DarthMew
b416862753
Set default aspect ratio to "Custom" 2022-02-10 00:50:58 +01:00
DarthMew
5296a7e9b8 Add 'Custom Aspect Ratio Numerator' & 'CustomAspectRatioDenominator' options. 2022-02-09 23:34:57 +01:00
DarthMew
b2afbb79db Fix small inconsistency when switching renderers during runtime & small cleanup 2022-02-08 23:52:03 +01:00
DarthMew
3f073cab62
Remove unused compare statement 2022-02-08 02:39:56 +01:00
DarthMew
6eacb942de
Move this bit to top 2022-02-06 12:26:18 +01:00
DarthMew
7ce707714c
Set default renderer to "Auto" for Windows
It will default to D3D11 anyway if the video driver isn't set to Vulkan or any of the GL variants.
2022-02-05 13:32:35 +01:00
Nikos Chantziaras
0cca23ff30
Add CHD precache support
This uses the chd_precache() function of libchdr which just loads the
CHD image to memory without decompressing it. So this is "weaker" than
the full preload to RAM option, which fully decompresses the CHD image,
but it still solves the problem of having the CHD images stored on
unreliable network storage. It's also much faster, since CHDs are quite
slow to decompress in whole.

The main point of this is to be able to use M3U files to run multi-disc
games and still be able to work around unreliable storage. The full
preload to RAM option does not work with M3U files. This option does.

CHD precache is ignored (and the option disabled in the UI) if the full
preload to RAM option is enabled.
2022-02-04 21:40:28 +02:00
DarthMew
bbd7398028 Pull https://github.com/stenzek/duckstation/pull/2804 2022-01-30 00:00:05 +01:00
DarthMew
0bc609b176 Init core options update display callback on startup 2022-01-27 00:12:50 +01:00
DarthMew
224942671e Add support for core options update display callback 2022-01-26 17:04:54 +01:00
DarthMew
5705160451 Hookup VRAM write texture replacement 2022-01-24 20:13:21 +01:00
DarthMew
f264c01e2e
Add more under- & overclock values 2022-01-23 21:27:16 +01:00
DarthMew
979f5974fe Rework the software framebuffer, assign the software renderer proper values for width & height, and rework assertion checking for the renderer 2022-01-22 16:35:59 +01:00
DarthMew
61c5debe60 Add a better clarification 2022-01-21 21:37:14 +01:00
DarthMew
b4c3d31f28 Revert https://github.com/libretro/swanstation/pull/43, fixes 'Use Software Renderer For Readbacks' 2022-01-21 21:14:41 +01:00
DarthMew
b94d18f22e
Remove leftover debugging code 2022-01-17 00:19:12 +01:00
DarthMew
d7ce813885 Reduce controller log spamming 2022-01-17 00:15:55 +01:00
DarthMew
f6f3429d30 Add Force Pop'n Controller Mode & NeGcon Steering Axis Deadzone options 2022-01-15 01:20:55 +01:00
DarthMew
096de977c3
Clarify that this is for a lightgun input 2022-01-12 19:30:18 +01:00
DarthMew
2bf81a54d0 Add Controller X Scale option 2022-01-12 18:18:35 +01:00
DarthMew
18312bb8d3
Add this for good measure 2022-01-12 17:18:43 +01:00
Nikos Chantziaras
1d3f5bf9dc
Improve BIOS core option descriptions 2022-01-12 00:02:55 +02:00
DarthMew
7465703f24 Use better multipliers for GunCon 2022-01-11 03:29:48 +01:00
DarthMew
2c571da4b7 Merge branch 'master' of https://github.com/stenzek/duckstation 2022-01-10 16:02:46 +01:00
DarthMew
eb01906313
Remove depreciated line 2022-01-09 23:18:57 +01:00