Commit graph

50 commits

Author SHA1 Message Date
DarthMew
132d9fd240 Simplify code related to settings 2023-03-17 01:11:54 +01:00
DarthMew
e24f21196c Don't allow disabling PGXP color perspective when using OpenGL 2023-03-10 01:16:47 +01:00
DarthMew
d27eb69e9e Change memcard 2 option description & remove some unused options 2023-03-02 00:20:51 +01:00
DarthMew
bc5f6c8dff
Rename 'duckstation' strings to 'swanstation' & replace dot with underscore in setting names (#62) 2023-02-24 21:37:22 +01:00
DarthMew
2c32ad0a29 Slightly reword renderer switch message 2023-02-09 14:21:02 +01:00
DarthMew
e6c53a15cd Revert 27c76b0a48 and fix underlying issue 2023-02-09 14:04:28 +01:00
DarthMew
27c76b0a48 Revert 28d4d33b2c 3bfe5959da 0d47de2dd7 & 826d58355c 2023-02-09 01:51:40 +01:00
DarthMew
cf6b256fd9 Add a better way to option Git hash 2023-02-03 23:33:18 +01:00
DarthMew
826d58355c Backport PGXP perspective-correct color interpolation toggle & cleanup libretro_game_settings 2023-01-31 01:52:51 +01:00
DarthMew
609262e502 Add 'Controller i Lightgun Y Scale' option 2023-01-28 01:46:16 +01:00
DarthMew
115a171972 Force 'Game Native' core provided AR when using a GunCon 2023-01-23 23:18:52 +01:00
DarthMew
dbaa7913ff Don't force aspect ratio when using a GunCon 2023-01-23 00:03:06 +01:00
DarthMew
fb11fcc843 Add GunCon crosshair to the hardware renderers 2023-01-22 19:10:49 +01:00
DarthMew
e4689b5ae0 Add option to toggle rumble 2023-01-22 04:17:01 +01:00
DarthMew
9c2ed9e917 Set default core provided AR to 4:3 & force 'Corrected' when using a GunCon 2023-01-18 19:09:48 +01:00
libretroadmin
4d3d229d36 Rip out the SCM version code - just causes build complications -
if we need Git hash added back to version string we should find some
other way to do it
2023-01-16 01:02:37 +01:00
DarthMew
82390b89fe Add PGXP Depth Buffer Threshold option 2023-01-08 23:58:25 +01:00
DarthMew
50b8761b50
Readd .mcd memcards for slot 1 2022-12-23 20:09:39 +01:00
DarthMew
cd0a682c44 Reorder core option categories & reword the first memcard to be exclusively LibRetro to prevent potential save corruption 2022-11-12 18:53:37 +01:00
DarthMew
ff0b451a57 Space formatting 2022-10-10 00:33:33 +02:00
DarthMew
7d8ce92847 Rework Analog Mode toggle to have multiple combo options 2022-10-09 22:27:47 +02:00
LibretroAdmin
d8916dd633 Remove some header includes 2022-09-12 20:51:33 +02:00
LibretroAdmin
ace6b54f04 Combine main.cpp and libretro_host_interface.cpp 2022-09-12 08:59:43 +02:00
LibretroAdmin
d6c66e0d82 Remove common/assert.h 2022-09-11 10:12:54 +02:00
LibretroAdmin
bb509e1a89 Remove unused variables/functions 2022-09-11 03:52:43 +02:00
LibretroAdmin
53569ad61e Get rid of assert.cpp 2022-09-08 08:37:38 +02:00
LibretroAdmin
048ac38a1b Remove DebugAssert 2022-09-08 07:58:20 +02:00
DarthMew
b1e3450d4b Replace int with boot to prevent possible analog toggle rapid fire 2022-07-15 22:33:59 +02:00
DarthMew
d5b4dd50cd
Replace || with && to prevent possible analog toggle rapid fire 2022-07-14 17:14:06 +02:00
libretroadmin
aba7ef9107 Some general cleanups 2022-06-27 19:10:56 +02:00
libretroadmin
c7974889cd - Remove unnecessary IncrementInternalFrameNumber
- Timing_event - remove unnecessary GetPeriod
- D3D11 - Remove IsDynamic
- LoadState/SaveState - remove second parameter
- System - Remove IsRunning/CancelPendingStartup/GetRunningTitle/GetGameCodeForPath/GetRegionForPath/x
2022-06-25 23:49:01 +02:00
libretroadmin
71d00a4327 Remove unused functions 2022-06-25 21:19:12 +02:00
libretroadmin
8528958587 AcquireHostDisplay - don't return value 2022-06-24 23:39:04 +02:00
libretroadmin
e8273d964f Get rid of unnecessary GL context files - libretro doesn't need it 2022-06-24 19:28:41 +02:00
libretroadmin
44229e216f Remove unused variables/functions 2022-06-24 16:42:54 +02:00
libretroadmin
267a695545 - Remove file I/O from cheats.cpp
- Remove OpenPackageFile from host interface
2022-06-24 08:06:41 +02:00
libretroadmin
eacd4f6cf3 Simplify audio_stream code 2022-06-24 05:35:42 +02:00
libretroadmin
dc04daa11f Remove OnDisplayInvalidated
Remove OnSystemPerformanceCounter
2022-06-24 03:56:42 +02:00
libretroadmin
263df1ea17 Remove settings display_show_fps - frontend can do this 2022-06-24 03:36:25 +02:00
libretroadmin
74c39d71ee - Remove some logs
- Remove unused SetVSync
2022-06-24 03:01:35 +02:00
DarthMew
8c87884dd9 Make 'CPU Recompiler Fast Memory Access' Default to 'MMap' on 64bit platforms, and only show 'CPU Recompiler Fast Memory Access Rewrite' when 'MMap' is selected 2022-06-05 22:37:41 +02:00
DarthMew
0e53a5ac09 Add 'Display Internal Framerate' option 2022-04-19 02:14:35 +02:00
DarthMew
0db3923f1d Add 'Controller NeGcon Twist Response' option & remove 'Controller NeGcon Steering Axis Deadzone' for slots 5 through 8 2022-04-17 23:34:43 +02:00
DarthMew
c706125769 Fix controller specific settings not updating without a re-init, and re-add 'NeGcon Steering Axis Deadzone' option 2022-04-16 18:09:16 +02:00
DarthMew
0e27584155 Remove 'Force Pop'n Mode' & 'NeGcon Steering Axis Deadzone' options 2022-04-13 17:39:21 +02:00
DarthMew
9d95c03f5a Require a core restart when switching memcard1 type, remove 'none' for memcard1, & further option clarification 2022-03-27 20:25:48 +02: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
dcff9d884d Dynamically hide software and hardware renderer specific options 2022-03-01 03:31:20 +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
Renamed from src/duckstation-libretro/libretro_host_interface.cpp (Browse further)