Commit Graph
4389 Commits
Author SHA1 Message Date
Jordan Woyak cf21d5dc0b Merge pull request #14877 from SuperSamus/performance-tracker-variance-fixup
PerformanceTracker: Small cleanup, properly use RunningVariance for the standard deviation
2026-11-12 18:07:27 -06:00
Jordan Woyak d08bddeaab Common/TypeUtils: Remove missing __cpp_aggregate_paren_init feature workaround. 2026-11-01 21:09:38 -06:00
JMC47 833d8c0596 Merge pull request #14704 from JoshuaVandaele/mathutils-23
MathUtil: C++20/23 modernisations
2026-11-01 14:59:45 -05:00
iwubcode 86d554802d Merge pull request #14596 from CySlaytor/master
feat(retroachievements): implement achievement notification sounds
2026-11-01 00:10:58 -05:00
CySlaytor 56076f403d feat(retroachievements): implement achievement notification sounds 2026-11-01 01:29:01 +00:00
Martino Fontana c6e63fb3ab PerformanceTracker: Small cleanup, properly use RunningVariance for the standard deviation
UpdateStats() was calculating the standard deviation from the entirety of m_dt_queue, which has a noticeable performance impact when the frame rates are very high.
On a scene so light it runs at 3000 FPS, UpdateStats() was taking around 5% of the profiling (at default 1s sample window). Now it doesn't.
2026-10-31 22:52:44 +01:00
JosJuice 34746347b7 Merge pull request #14903 from brad0/elf_aux_info_check
ArmCPUDetect: check elf_aux_info() return value in ReadHwCap
2026-10-31 16:10:02 +01:00
Jordan Woyak fa108cf559 Common/Thread: Remove unused non-Windows INFINITE macro. 2026-10-25 01:34:41 -05:00
Jordan Woyak d7c0fdebad Common/Thread: Remove unused SwitchCurrentThread function. 2026-10-25 01:34:41 -05:00
OatmealDome 5ef181ba4d Revert "msvc: use std::chrono for GetLocalTimeSinceJan1970"
This reverts commit 86da6c98fb.
2026-10-23 11:49:22 -04:00
Jordan Woyak db5bbbd6cf Common: Create MD5Context class and ComputeMD5 function to minimize exposure to mbedtls throughout the project. 2026-10-21 13:48:22 -05:00
JosJuice 41460454e9 Merge pull request #14796 from acts-1631/security/traversal-pending-timeout
Traversal: update pending-packet time on socket timeout
2026-10-18 14:51:18 +02:00
JosJuice 38d619b076 Merge pull request #14804 from JosJuice/jit-set-lazy-memory-region
Jit: Use LazyMemoryRegion-backed bit sets
2026-10-17 19:14:10 +02:00
Acts1631 f5438ce0c3 VideoCommon: validate restored FIFO pointers
Save states restored video FIFO pointers from unchecked offsets. A
crafted offset could place a pointer outside its backing allocation and
turn the next gather-pipe copy into an out-of-bounds native write.

Require pointer offsets to stay within their backing array and reject a
state when either offset is invalid or the read pointer follows the write
pointer.
2026-10-04 16:53:57 -04:00
OatmealDome f70b2990ad Merge pull request #14891 from OatmealDome/shm-entry-begone
MemArenaDarwin: Eliminate use of mach_make_memory_entry_64
2026-10-03 21:14:38 -04:00
JosJuice af1ab20b35 Merge pull request #14812 from JoshuaVandaele/correct-env-locale
Fix crashes when using `std::locale{""}` with an invalid LC_ALL
2026-10-03 09:53:13 +02:00
Admiral H. Curtiss 061f3e95bb Merge pull request #14863 from brad0/openbsd_getexecpath
Implement File::GetExePath() for OpenBSD with getexecpath()
2026-10-02 19:52:29 +02:00
Brad Smith c636f1c87b ArmCPUDetect: check elf_aux_info() return value in ReadHwCap
Handle failure explicitly instead of relying on the initial value.
No functional change.
2026-10-01 12:35:57 -04:00
VampireFlower 902587cae2 Assembler: Fix crash from assembling malformed source 2026-09-30 04:04:23 -06:00
Acts1631 93097f65ea Traversal: update pending-packet time on socket timeout
Pending traversal packets were only expired after receive events. If a
client did not acknowledge a response and no more packets arrived, the
server retained the pending entry indefinitely.

Update the current time before handling socket timeouts. Pending packets
will then retry and expire while the server is idle.
2026-09-27 19:06:43 -04:00
OatmealDome da76f651ec MemArenaDarwin: Eliminate use of mach_make_memory_entry_64 2026-09-27 13:59:01 -04:00
Brad Smith 191292946f Fix building on OpenBSD
- OpenBSD does not have SO_NOSIGPIPE
- Enable some socket related code in AMMediaboard.cpp on OpenBSD
2026-09-15 01:22:34 -04:00
Brad Smith 71165c82a5 Implement File::GetExePath() for OpenBSD with getexecpath() 2026-09-15 00:49:03 -04:00
Dentomologist 982e8d183d Merge pull request #14817 from JosJuice/android-netplay-version
Common: Add Android to GetNetplayDolphinVer
2026-09-05 22:04:48 -07:00
OatmealDome 27804b4e67 MemArenaDarwin: Pass the MAP_MEM_VM_SHARE flag to mach_make_memory_entry_64
Large anonymous mappings are split into 128 MB chunks. Without MAP_MEM_VM_SHARE,
mach_make_memory_entry_64 will only return an entry spanning the first chunk.
Attempting to map through that entry will fail if it extends beyond the 128 MB
boundary, which can happen when the sizes of MEM1/MEM2 are overridden.
2026-09-01 22:25:12 -04:00
JosJuice f93a8a995b Common: Add DivideRoundingUp function
Many callers of AlignUp are dividing immediately after aligning. Let's
add a helper function for this so callers don't have to specify the
alignment size twice.
2026-08-22 11:52:22 +02:00
JosJuice 82f7ec5390 Common: Reduce LazyMemoryRegion's Windows block size
8 MiB is excessively large for the new use cases, and probably a bit
overkill for the old use cases too. Let's reduce it to 1 MiB.
2026-08-22 11:52:01 +02:00
JosJuice 9407047330 Jit: Use LazyMemoryRegion-backed bit sets
JitCache has been using a class called ValidBlockBitSet. This commit
replaces it with a new class called LazyMemoryRegionBitSet, which works
similarly but is backed by a LazyMemoryRegion, letting us skip
allocating memory for parts of the bit set that correspond to emulated
memory regions where the game isn't storing any code. I have also added
optimized functions for setting or clearing long runs of bits.

Additionally, this commit replaces JitBase's three std::unordered_sets
that are keeping track of instructions with LazyMemoryRegionBitSets.
Here the benefit is more speed than memory usage. This improves NBA Live
2005's menu performance by 1% or so in SuperSamus's testing.
2026-08-22 11:51:48 +02:00
JosJuice c774385c7b Common: Add Android to GetNetplayDolphinVer
This makes Android players show up as "Android" instead of "Lin".
(This is only visible in DolphinQt, not in the Android GUI.)

I'm also unabbreviating all the existing operating system names:

* Win -> Windows
* Mac -> macOS
* Lin -> Linux
2026-08-21 20:04:13 +02:00
OatmealDome 38e70fda65 Merge pull request #14800 from dreamsyntax/winupdater-vcredist
Require VS2026; Update Redist WinUpdater Pulls
2026-08-20 22:02:49 -04:00
Joshua Vandaële 622c711ccf Fix crashes when using std::locale{""} with an invalid LC_ALL 2026-08-12 22:25:11 +02:00
JosJuice d2f7ed3602 Common: Fix LazyMemoryRegion::EnsureMemoryPagesWritable
If (offset + size) % BLOCK_SIZE was smaller than offset % BLOCK_SIZE,
the loop terminated one iteration too early, potentially leaving a block
read-only.

None of the existing users of LazyMemoryRegion could trigger this bug,
because they never made EnsureMemoryPagesWritable calls that straddled
across two blocks, but the next commit will add a new use that does.
2026-08-09 20:20:53 +02:00
Dentomologist f42c349c32 Merge pull request #14802 from phire/fallthrough_warnings
Enable Fallthrough warnings
2026-08-08 01:21:25 -07:00
Scott Mansell 1c4208e1fb Add fallthroughs to OpenGL InitExtentionList 2026-08-07 20:41:59 +12:00
Scott Mansell 4a10a9c634 Add fallthroughs to GetMurmurHash3 2026-08-07 19:27:41 +12:00
dreamsyntax ed25d5649b Require VS 2026, update WinUpdater redist
Updater now pulls VC14
Require MSVC 19.51.36252
2026-08-05 08:50:39 -07:00
Sepalani 6496d6c0c9 Common/BitCastPtr: Prevent destination type to be a pointer 2026-08-05 00:15:16 +04:00
Joshua Vandaële 1c2b7fbf7f EGLX11: Forbid EGL_PLATFORM to be "wayland" 2026-07-31 10:34:00 +02:00
Dr. Dystopia 61e97c9a09 Replace zero constants with nullptr 2026-07-29 18:15:38 +02:00
Joshua Vandaële 55c015e6ac AchievementApprovedHash: Automatically generate hash using CMake 2026-07-27 07:09:11 +02:00
Joshua Vandaële f1a639b12b CWDemangler: Resolve missing-declarations warnings 2026-07-25 05:19:26 +02:00
Joshua Vandaële fa2a250f01 CMake: Unify sys directories 2026-07-24 03:45:13 +02:00
Joshua Vandaële d2833fb788 Remove Visual Studio Projects and Solutions in favor of CMake 2026-07-24 03:45:13 +02:00
Joshua Vandaële 6dcb0817a2 MathUtil: C++20/23 modernisations
I've also created DegreesToRadians/RadiansToDegrees utility functions since there was a lot of repeated code
2026-07-13 02:32:33 +02:00
Craig Carnell e222665eb0 mingw: lower case windows includes 2026-07-08 09:18:29 +01:00
JosJuice 59d7547c2c Merge pull request #13216 from CelestialAmber/cw-demangler
Core: Implement automatic symbol demangling
2026-07-05 17:38:09 +02:00
Admiral H. Curtiss 14ee972235 Merge pull request #14684 from Sintendo/rm-unused-headers
Remove unused headers
2026-06-26 19:09:39 +02:00
Joshua Vandaële faaea5919a Add missing includes 2026-06-23 21:09:18 +02:00
Joshua Vandaële e97b1cd759 fmt: Allow building with version >=12.2.0
This change was causing some issues:

> Made FMT_STRING a no-op when FMT_USE_CONSTEVAL is enabled, since the consteval format-string constructor already provides compile-time validation (#4611, #4612). Thanks @friedkeenan.
2026-06-23 21:09:14 +02:00
JosJuice 47040a1834 Don't send Dolphin version in user agent to Redump
When we added the RetroAchievements integration, we had a discussion
about whether sending version information in the user agent was fine
from a privacy standpoint. We reached the conclusion that it was okay,
but it was conditional on the website having a privacy policy. Neither
incarnation of Redump has that, and Redump also never asked us to send
version information like RetroAchievements did, so let's use a user
agent that just says "Dolphin" when connecting to Redump.
2026-06-22 08:36:44 +02:00