Commit graph

366 commits

Author SHA1 Message Date
Henrik Rydgård
ef2d7a810a Add comments, move some stuff around, get rid of some indentation. No functionality change. 2023-08-15 18:34:06 +02:00
Henrik Rydgård
d1b6aa7faa SoftGPU headless crashfix 2023-08-14 11:23:28 +02:00
Henrik Rydgård
ff6e118fff Get rid of a lot of ifdefs around presentation mode. Instead, set things dynamically. 2023-08-14 11:02:29 +02:00
Henrik Rydgård
bec9c5611e Rename PresentationMode to PresentMode 2023-08-14 11:02:29 +02:00
Henrik Rydgård
7bb1914fd3 Add FrameTiming.cpp/h (with no real contents) 2023-08-13 17:57:43 +02:00
Henrik Rydgård
096c168dd7
Add yield() function to tell the CPU that we're busy-waiting (rare) (#17862)
* Add yield() function to tell the CPU that we're busy-waiting (rare)

Use it only for the busy-wait in lag sync, which only happens in
Windows.

* Buildfix attempt
2023-08-07 21:38:03 +02:00
Henrik Rydgård
a32249a3cf Move DebugOverlay rendering to the overlay screen, allowing drawing it on top of the menu 2023-08-03 16:19:18 +02:00
Henrik Rydgård
fc6879674e Refactor overlays into an enum 2023-08-02 13:03:04 +02:00
Henrik Rydgård
f0fd9e85aa Try dirtying CULL_PLANES in Execute_BoundingBox in SoftGPU 2023-07-30 18:35:18 +02:00
Henrik Rydgård
5aeccca85b Move Achievements::FrameUpdate call to hleEnterVblank for consistency 2023-07-13 16:47:16 +02:00
Henrik Rydgård
c6d33957af Add a checkmark icon. Rebuild the UI icon atlas image 2023-07-13 11:02:15 +02:00
Henrik Rydgård
5d3e438258 Unlimited alternate speed got broken in recent changes. Fix it. 2023-07-12 20:55:45 +02:00
Henrik Rydgård
95807a4791 In challenge mode, allow faster alternate speeds (but not slower).
Fixes issue reported in #17631
2023-07-11 11:29:26 +02:00
Henrik Rydgård
c17b84b3d4 Implement RetroAchievements challenge mode restrictions, and fix related bugs 2023-07-08 21:55:32 +02:00
Henrik Rydgård
1375b6e097 Buildfix 2023-06-30 17:25:44 +02:00
Henrik Rydgård
7cc8c6cea4 OSD: Add semantics, move the the OSD state to common (while keeping the renderer in the UI). 2023-06-20 14:40:46 +02:00
Henrik Rydgård
42ce619705 Vulkan fastforward: Check the current presentation mode instead of the Vsync setting.
After 1.15, I'm gonna clean up the presentation mode/vsync management
across the code base. This works around #17308 for now.
2023-04-26 12:02:42 +02:00
Henrik Rydgård
ee6234ecb6 I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
2023-04-07 10:35:01 +02:00
Henrik Rydgård
d586ec0d5e Don't create Host objects except in headless/unittest 2023-03-25 10:47:01 +01:00
Henrik Rydgård
9e125eeba7 Remove NotifyUserMessage from Host 2023-03-25 10:32:09 +01:00
Henrik Rydgård
c2c479b217 Remove function InitClear. Was only implemented for DX9, and only barely meaningful in non-buffered. 2023-02-25 16:32:50 +01:00
Henrik Rydgård
519db766b6 Change "Rendering Mode" to just a "Skip buffer effects" checkbox. Reuse translations. 2022-11-06 19:26:56 +01:00
Henrik Rydgård
1b3b1acefa Tweak ForceMax60Fps to work for Killzone 2022-08-30 20:10:44 +02:00
Lubos
2887671e6f OpenXR - Refactor display framerate 2022-08-17 16:55:19 +02:00
Lubos
cc3981a328 OpenXR - 72Hz support added 2022-08-05 15:14:21 +02:00
Henrik Rydgård
d2002eab39
Merge pull request #15640 from LunaMoo/master
Disable ForceMax60FPS for GOW games and replace it with fixed 60 fps
2022-07-10 23:25:35 +02:00
Unknown W. Brackets
c15c4a6967 UI: Add analog speed limit mapping.
Only shows up as a setting if mapped, to avoid cluttering settings.
2022-07-04 19:14:05 -07:00
LunaMoo
0dcf8242f5 Add Fixed60FPShack for GOW, should work smoother than the ForceMax60FPS.
Also more stable than it's CWCheat version, unfortunately because of that,
still causes softlock in GOW:GOS vortex stage.
2022-07-02 19:39:35 +02:00
Unknown W. Brackets
bbbb154da0 Display: Ignore lagsync when auto frameskip on.
The delays in lag sync will only confuse the frameskipping code,
because it will interpret the intentional delays as need for skipping.

In theory, frameskip could ignore the lag sync time, but it would still
make frameskip far less effective.
2022-05-10 17:06:09 -07:00
Unknown W. Brackets
48b597a1b9 Display: Move core counters/stats to HW file.
This separates things better, so not everything is pulling in HLE.
2022-01-30 11:53:48 -08:00
Unknown W. Brackets
ad2e380987 Display: Move listeners to separate HW file.
Mixing this in with the HLE management funcs was messy.
2022-01-30 09:41:08 -08:00
Unknown W. Brackets
dc843c258d Display: Prevent lock around listener calls.
Fixes #15123, crash in Bleach: Soul Carnival 2.
2021-11-10 19:30:25 -08:00
Unknown W. Brackets
1532a729d7 Core: Allow forcing debug statistics collection.
Useful for remote debugging.
2021-10-19 10:01:41 -07:00
Unknown W. Brackets
a06efdd222 Display: Allow threadsafe listeners.
Also add a flip listener.
2021-10-19 10:01:40 -07:00
Unknown W. Brackets
e1d261b707 Display: Remove frameskip fast-forward mode.
Fixes #13546.
2021-10-12 20:38:57 -07:00
Unknown W. Brackets
4c0951eb93 Display: Avoid skipping flips at 60 FPS.
If the device is 58 or 59 FPS, let's just assume it's better to flip each
time.
2021-10-03 07:04:04 -07:00
Unknown W. Brackets
9024c7111b Vulkan: Fix faster alt speed with vsync. 2021-09-14 22:53:54 -07:00
Unknown W. Brackets
46770aba3a Vulkan: Skip flips, not draw, for vsync unthrottle. 2021-09-14 22:35:32 -07:00
Henrik Rydgård
a7859cfd2a Fix some comments and a string 2021-08-18 09:28:17 +02:00
Henrik Rydgård
928bc88b01 Rename Unthrottle to Fast-forward globally 2021-08-18 09:28:13 +02:00
Unknown W. Brackets
6f9f9f5f2a HLE: Ignore flip time in syscall stats.
Don't want to count flip timing as the slowest thing, when it happens
inside sceDisplaySetFramebuf (immediate.)
2021-08-14 20:18:06 -07:00
Henrik Rydgård
5859596b95 Make the "Running Slow" warning a bit more lenient.
Might help #12024, or at least the annoying unnecessary warning.

Our audio mixer is able to cover for 97% speed by stretching the sound
anyway, so I think there's not much point in a visually loud warning
until it drops below that.
2021-07-11 11:09:05 +02:00
Henrik Rydgård
93fd62f54b
Merge pull request #13832 from unknownbrackets/events
SaveState: Make event restoring more obvious
2021-02-15 23:39:42 +01:00
Unknown W. Brackets
f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets
06f8ab5a49 SaveState: Make event restoring more obvious.
We still must restore all events, but everything can be taken care of
during the save state load.
2020-12-28 13:29:19 -08:00
Henrik Rydgård
d4c02ccc1c Address feedback about recent changes
Thanks unknown.
2020-10-19 22:50:31 +02:00
Henrik Rydgård
2127524b35 Fix a couple of issues with #13477, found by aliaspider.
Might help #13494 and other freezing issues.
2020-10-12 23:00:06 +02:00
Henrik Rydgård
e97baa503a Avoid a division in time_now_d(). Minor optimizations. 2020-10-10 19:05:46 +02:00
Henrik Rydgård
0e3a84b4a8 Move most GPU things to Common.
It works after the move, on Windows and Android at least.

Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02:00
Henrik Rydgård
f01ba6dc84 Move NativeApp.h to Common/System, split into NativeApp.h and System.h
Buildfix
2020-10-04 11:42:16 +02:00