Commit graph

26 commits

Author SHA1 Message Date
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)