summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2026-01-24Clean includesSintendo
2026-01-24Common/FileSearch: Refactor DoFileSearchSintendo
2026-01-23Merge pull request #13900 from JosJuice/jit-fma-double-roundingJosJuice
Jit: Implement error-free transformation for single-precision FMA
2026-01-21Merge pull request #14146 from ↵Dentomologist
jordan-woyak/cached-interp-fix-function-cast-warning CachedInterpreter: Replace reinterpret_cast with std::bit_cast to resolve -Wcast-function-type-mismatch warnings.
2026-01-19State: Simplify interthread communication and cleanups. Save/Load calls are ↵Jordan Woyak
now always non-blocking for the caller, but appropriately block the CPU thread as needed.
2026-01-19Common: Add TransferableSharedMutex class and unit tests.Jordan Woyak
2026-01-19Core: Add a HookableEvent for UICommon::FlushUnsavedData.Jordan Woyak
2026-01-19Android: Detect when native code should flush unsaved dataJosJuice
2026-01-19Core: add game id to fifo logs, this makes it easier to test graphical ↵iwubcode
enhancements which use the game id to load
2026-01-19Merge pull request #14294 from JosJuice/textureinfo-getters-headerJordan Woyak
VideoCommon: Move TextureInfo getters to header
2026-01-19VideoCommon: Move TextureInfo getters to headerJosJuice
This improves my PC's performance on RS2 Hoth by... 0.1% or so, which I think is within the margin of error. But this change also cuts down on boilerplate.
2026-01-18JitRegister: Check Open return codeDentomologist
If the call to `Open` a perf map fails don't set `s_is_enabled` (though it could already be true if you're also using VTUNE) and don't call `std::setvbuf` with a null stream. Also fix a typo in a comment (`if` -> `in`)
2026-01-18JitRegister: Verify IOFile IsGoodDentomologist
Use IOFile's bool operator to check that it's not just open but good.
2026-01-18JitRegister: Fix IsEnabled when using VTune without perfDentomologist
Set `s_is_enabled` to `true` in `Init` when `USE_VTUNE` is defined so that `IsEnabled` returns true even if perf isn't being used.
2026-01-19Merge pull request #14290 from ↵Admiral H. Curtiss
Dentomologist/jitregister_remove_redundant_open_file_check JitRegister: Remove redundant check for open file
2026-01-18JitArm64: Special-case fmadds with single-precision inputsJosJuice
If all inputs to an fmadds instruction (including cousins like fmsubs, fnmadd...) are single-precision, then the result is identical between a double-precision calculation with an error-free transform (whether the calculation is fused or not) and a single-precision FMA instruction (must be fused). So as a performance optimization in JitArm64, if we were going to use double precision with EFT but the inputs are singles, instead we'll use a normal single-precision FMA instruction without anything extra. This lets us skip both the EFT and double-to-single conversions. Also renaming `inaccurate_fma` to `nonfused` because it's confusing that `inaccurate_fma` and `m_accurate_fmadds` have such similar names despite controlling separate things.
2026-01-18Jit: Implement error-free transformation for single-precision FMAJosJuice
This implements the equivalent of 07443e2d41 in Jit64 and JitArm64. Aims to fix https://bugs.dolphin-emu.org/issues/13865.
2026-01-18Jit64: Return FixupBranch from HandleNaNsJosJuice
This will be used in the next commit to skip running code that's unnecessary when the result is NaN.
2026-01-18Jit64: Replace MOVSD with MOVAPD in software FMAJosJuice
Should be a little faster by avoiding false dependencies. Note that there is one remaining MOVSD that really needs to be a MOVSD.
2026-01-18JitArm64: Reduce register pressure for inaccurate FMA with accurate NaNsJosJuice
If result_reg is set to a temporary register instead of VD because of accurate NaNs, there's no need to allocate a secondary temporary register because of inaccurate FMA.
2026-01-18Arm64Emitter: Fix Q bit of vector SHL/URSHR encodingJosJuice
This doesn't affect any existing callers, because all existing callers use quad registers.
2026-01-18Merge pull request #14033 from JosJuice/jitarm64-inaccurate-fma-doubleJMC47
JitArm64: Always use double precision for inaccurate FMA
2026-01-18Merge pull request #14291 from JosJuice/defer-textureinfoJMC47
VideoCommon: Defer creating TextureInfo
2026-01-18Jit64: Improve cmpXX imm handlingJosJuice
In the past, the register cache would contain either a host register or an immediate (or neither) for a given guest register. Jit64::cmpXX would roll with whichever one it got. But now that PR 12134 is merged, the register cache can contain a host register at the same time as an immediate. This gives us an optimization opportunity in Jit64::cmpXX. Some paths are more efficient when we use an immediate and some paths are more efficient when we don't, so to generate the best code, we should carefully choose if we want an immediate or not rather than leaving it to the register cache.
2026-01-18VideoCommon: Defer creating TextureInfoJosJuice
TextureCacheBase::LoadImpl has a hot path where the passed-in TextureInfo never gets used. Instead of passing in a TextureInfo, let's pass in the stage and create the TextureInfo from the stage if needed. This unlocks somewhere above an additional 4% performance boost in the Hoth level of Rogue Squadron 2 on my PC. Performance varies, making it difficult for me to measure, so treat this as a very approximate number.
2026-01-18JitArm64: Always use double precision for inaccurate FMAJosJuice
When we're emulating single-precision FMA using an FMA instruction, there's no precision benefit from using a double-precision instruction, assuming all inputs are single-precision. But when we're emulating single-precision FMA using separate multiplication and addition instructions, there is. This change increases the precision of inaccurate FMA to the same level as Jit64, which matters since the only reason we have the inaccurate FMA mode is for sync compatibility with Jit64.
2026-01-18ARDecrypt: Code modernization.Jordan Woyak
2026-01-17Merge pull request #14267 from jordan-woyak/std-expectediwubcode
Common: Replace Result with std::expected.
2026-01-17Merge pull request #14265 from JoshuaVandaele/std-unreachableiwubcode
c++23: Replace Common::Unreachable with std::unreachable
2026-01-17JitRegister: Remove redundant check for open fileDentomologist
The check only happened if `USE_VTUNE` wasn't defined, and in that case it was immediately followed by the same check again. The check used to avoid an unnecessary call to `StringFromFormatV` in certain circumstances, but that call was removed in be81fe86e19e3afc70fc9190fd8f5f18f906c0eb.
2026-01-17Merge pull request #14289 from Sintendo/typosJMC47
Fix various typos and spelling mistakes
2026-01-17Merge pull request #14274 from JosJuice/jitregister-check-enabledJMC47
JitRegister: Check IsEnabled before constructing string
2026-01-17Merge pull request #14258 from JoshuaVandaele/dinput-unconditional-mousebuttonsJMC47
DInputKeyboardMouse: Always report all possible buttons
2026-01-17Merge pull request #14215 from Tilka/disasmJMC47
GekkoDisassembler: fix multiple issues
2026-01-17Merge pull request #14193 from jordan-woyak/budokaiprogressiveJMC47
GameSettings: Dragon Ball Z: Budokai 1 and 2 adjustments.
2026-01-17Merge pull request #14250 from jordan-woyak/wmreal-bb-no-poolJMC47
WiimoteReal: Immediately disconnect balance boards when disabled.
2026-01-17Common: Replace Result with C++23's std::expected.Jordan Woyak
2026-01-17c++23: Replace Common::Unreachable with std::unreachableJoshua Vandaële
Requires at least GCC 12, Clang 15, MSVC 19.32, or AppleClang 14.0.3.
2026-01-17Merge pull request #14268 from JoshuaVandaele/std-tounderlyingiwubcode
c++23: Replace Common::ToUnderlying with std::to_underlying
2026-01-17Merge pull request #14286 from JosJuice/textureinfo-vectorJMC47
VideoCommon: Don't create mipmap vector in TextureInfo
2026-01-17Merge pull request #14287 from Sintendo/mac-cmake-fixOatmealDome
Fix MacUpdater build on CMake 3.31+
2026-01-17Merge pull request #14213 from cscd98/readvalueDentomologist
mingw: move ReadValue definitions into cpp to fix visibility
2026-01-17Fix various typos and spelling mistakesSintendo
2026-01-17Fix MacUpdater build on CMake 3.31+Sintendo
Building on macOS with a recent CMake version would result in the following error: CMake Error at Source/Core/MacUpdater/CMakeLists.txt:48 (add_custom_command): The following keywords are not supported when using add_custom_command(TARGET): DEPENDS As it turns out, this form of `add_custom_command` does not accept DEPENDS, but versions of CMake prior to 3.31 silently dropped it.
2026-01-17VideoCommon: Don't create mipmap vector in TextureInfoJosJuice
The TextureInfo constructor creates a vector of MipLevels. This could be good for performance if MipLevels are accessed very often for each TextureInfo, but that's not the case. Dolphin creates thousands of TextureInfos per second that it never accesses the mipmap levels of because there's a hit in the texture cache, and in the uncommon case of a texture cache miss, the mipmap levels only get looped through once. To make the common case of texture cache hits as fast as possible, let's not create a vector in the TextureInfo constructor. This commit implements a custom iterator for MipLevels instead. In my testing on the Death Star level of Rogue Squadron 2, this speeds up TextureInfo::FromStage by 200%, giving an overall emulation speedup of a bit over 1%. Results on the Hoth level are even better, with TextureInfo::FromStage being close to 300% faster and overall emulation being over 4% faster. (Single core, no GPU texture decoding.)
2026-01-17LogitechMicWindow: Fix compilation when cubeb is disabledSepalani
2026-01-15MenuBar: Add entries to open the config and cache foldersJoshua Vandaële
2026-01-12Merge pull request #14199 from JosJuice/jit64-rcoparg-isimmJMC47
Jit64: Return current value from RCOpArg::IsImm
2026-01-11Revert "Externals: Update zlib-ng to v2.3.2"Jordan Woyak
This reverts commit 34b402b631738c546fb2c59bbb791c124f4633d2.
2026-01-11Merge pull request #14273 from JosJuice/x64-oparg-paddingJordan Woyak
Jit64: Make OpArg and TrampolineInfo smaller