4406 Commits
Author SHA1 Message Date
Jordan Woyak 4caa1fe51c Common: Remove SFMLHelper and now unused sf::Packet functions. 2026-12-03 21:27:23 -06:00
Jordan Woyak f2c7dada3b Core/NetPlay: Replace sf::Packet with NetPacket to eliminate dependence on SFML. 2026-12-03 21:27:06 -06:00
debug687 e841ddee16 Netplay: Zero-initialize packet-relay structs 2026-12-04 00:32:46 +00:00
Jordan Woyak 0318069674 Merge pull request #15018 from jordan-woyak/spsc-queue-node-array
Common/SPSCQueue: Hold an array of values in each linked node to make SPSCQueue of u8 practical.
2026-11-23 22:56:09 -06:00
Jordan Woyak 17d24c62d8 Common/SPSCQueue: Hold an array of values in each linked node to make SPSCQueue of u8 practical. 2026-11-21 15:28:29 -06:00
Jordan Woyak 7dac5ec790 Merge pull request #14985 from jordan-woyak/log-manager-minor-optimizations
Common/Logging: Minor cleanups and optimizations.
2026-11-20 19:37:06 -06:00
JosJuice c5069249b4 Merge pull request #15027 from SuperSamus/regcache-small-cleanup
JitRegCache: Small cleanup
2026-11-16 20:46:42 +01:00
Martino Fontana 14d5fe714d BitSet: Some small additions
Also add requirements for using range functions.
And micro-optimize testing if a bit is set (GCC and MSVC struggle to emit `bt` or `tbz`/`tbnz` with `bs & (1 << n)` compared to `(bs >> n) & 1`).
2026-11-15 22:31:04 +01:00
JosJuice 19d0dfb0a9 Merge pull request #14834 from JosJuice/jitarm64-small-fixupbranch
Arm64Emitter: Make FixupBranch smaller
2026-11-15 18:54:32 +01:00
JosJuice 761713cec9 Merge pull request #15012 from dokslade/gl-x11-event-mask
GLX11Window: Don't override the host's event mask on the parent window
2026-11-14 15:51:27 +01:00
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
dok.slade fc58424b3c GLX11Window: Don't override the host's event mask on the parent window
GLX11Window::Create called XSelectInput(display, parent_window,
StructureNotifyMask) on the host's display connection, which replaces
the event mask that the host (DolphinQt or DolphinNoGUI) selected for
the window instead of adding to it.

As a result, Qt stopped receiving FocusIn/FocusOut, key and mouse
events for the render window once an OpenGL context had been created
on it. The same issue made DolphinNoGUI lose its key and focus events
with OpenGL.

The GL code doesn't process any events itself, and the hosts already
select StructureNotify, so just drop the call. Also stop discarding
pending events in XSync, as the event queue belongs to the host.

Fixes https://bugs.dolphin-emu.org/issues/13354
2026-11-13 00:24:53 +01:00
Jordan Woyak 43c95acd01 Common/Logging/LogManager: Combine GetTimestamp functionality into LogWithFullPath to eliminate one std::string construction. 2026-11-08 13:08:09 -06:00
Jordan Woyak 055767399a Common/Logging/LogManager: Pass string_view instead of char* to give fmt string length awareness without having to perform strlen calls. 2026-11-08 13:08:09 -06:00
Jordan Woyak d02fc5f4bb Common/Logging/LogManager: Add IsListenerEnabled function to avoid string formatting when log types are enabled but all listeners are disabled.
Also eliminate redundant IsEnabled(type, level) check.
2026-11-08 13:08:09 -06:00
Jordan Woyak 5c3b7f75e1 Common/Logging/LogManager: Clean up "path cutoff point" calculation. 2026-11-08 13:08:09 -06:00
Jordan Woyak 122d1534c0 Common/Logging: Make LogManager deleted functions public to eliminate a clang-tidy warning. 2026-11-08 13:08:09 -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 819553ea4a Arm64Emitter: Make FixupBranch smaller
We were previously delaying all aspects of branch instruction encoding
to when SetJumpTarget runs. Now we only delay encoding the branch
distance. This lets us get away with storing less data in the
FixupBranch struct, making it small enough to be passed in two
registers instead of in memory.
2026-08-30 16:42:35 +02: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