summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2023-04-02general: fixes for gcc 13Liam
2023-03-29Fixes 'Continous' typoMax Dunbar
2023-03-27telemetry: Add waitpkg instructionMorph
2023-03-27x64: Simplify RDTSC on non-MSVC compilersMorph
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2023-03-27x64: Add MicroSleepMorph
MicroSleep allows the processor to pause for a "short" amount of time (in the microsecond range). This is useful for spin-waiting that does not require nanosecond precision. This uses the new TPAUSE instruction introduced on Intel's newest processors as part of the waitpkg instructions. For CPUs that do not support waitpkg instructions, this is equivalent to yield(). Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2023-03-27x64: cpu_detect: Add detection of waitpkg instructionsMorph
waitpkg introduces 3 instructions, UMONITOR, UMWAIT and TPAUSE.
2023-03-26container_hash: use climitsLiam
2023-03-25common: Port boost's hash_value implementationMorph
Ports a small subset of boost's hash_value implementation (<= 1.80.0).
2023-03-23zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSizeMorph
2023-03-23Merge pull request #9971 from Morph1984/qliamwhite
bounded_threadsafe_queue: Use simplified impl of bounded queue
2023-03-23Merge pull request #9964 from liamwhite/typed-addressliamwhite
kernel: use KTypedAddress for addresses
2023-03-22kernel: use KTypedAddress for addressesLiam
2023-03-21bounded_threadsafe_queue: Refactor PopMorph
Introduces PopModes to bring waiting logic into Pop, similar to Push.
2023-03-21bounded_threadsafe_queue: Add producer cv to avoid busy waitingMorph
2023-03-21bounded_threadsafe_queue: Deduplicate and add PushModesMorph
Adds the PushModes Try and Wait to allow producers to specify how they want to push their data to the queue if the queue is full. If the queue is full: - Try will fail to push to the queue, returning false. Try only returns true if it successfully pushes to the queue. This may result in items not being pushed into the queue. - Wait will wait until a slot is available to push to the queue, resulting in potential for deadlock if a consumer is not running.
2023-03-21bounded_threadsafe_queue: Add TryPushMorph
2023-03-21logging: Make use of bounded queueMorph
2023-03-21bounded_threadsafe_queue: Use simplified impl of bounded queueMorph
Provides a simplified SPSC, MPSC, and MPMC bounded queue implementation using mutexes.
2023-03-18common: string_util: Use std::string_view for UTF16ToUTF8/UTF8ToUTF16W.bunnei
2023-03-17common: bounded_threadsafe_queue: Use polyfill_thread.bunnei
2023-03-12general: fix spelling mistakesLiam
2023-03-10Merge pull request #9917 from Morph1984/the-real-timeliamwhite
native_clock: Re-adjust the RDTSC frequency to its real frequency
2023-03-08Merge pull request #9906 from german77/metroid2bunnei
input_common: Increase mouse sensitivity range
2023-03-07Merge pull request #9918 from liamwhite/fwrapvMorph
kernel: avoid signed overflow UB on MSVC
2023-03-07Merge pull request #9920 from liamwhite/constexpr-bit-castMorph
common: make BitCast constexpr
2023-03-07native_clock: Wait for 10 seconds instead of 30Morph
It was experimentally determined to be sufficient.
2023-03-07native_clock: Use RealTimeClock instead of SteadyClockMorph
We want to synchronize RDTSC to real time.
2023-03-07steady_clock: Introduce a real time clockMorph
2023-03-07native_clock: Re-adjust the RDTSC frequencyMorph
The RDTSC frequency reported by CPUID is not accurate to its true frequency. We will spawn a separate thread to calculate the true RDTSC frequency after a measurement period of 30 seconds has elapsed.
2023-03-08input_common: Minor typo issues (#9922)Narr the Reg
2023-03-07input_common: Increase mouse sensitivity rangegerman77
2023-03-07common: make BitCast constexprLiam
2023-03-07kernel: avoid signed overflow UB on MSVCLiam
2023-03-07Merge pull request #9889 from Morph1984/time-is-tickingliamwhite
core_timing: Reduce CPU usage on Windows
2023-03-06fix typo in settings.hIkko Eltociear Ashimine
Intial -> Initial
2023-03-05native_clock: Round RDTSC frequency to the nearest 1000Morph
2023-03-05timer_resolution: Set current process to High QoSMorph
Ensures that this process is treated as a high performance process by the Windows scheduler.
2023-03-05core_timing: Use higher precision sleeps on WindowsMorph
The precision of sleep_for and wait_for is limited to 1-1.5ms on Windows. Using SleepForOneTick() allows us to sleep for exactly one interval of the current timer resolution. This allows us to take advantage of systems that have a timer resolution of 0.5ms to reduce CPU overhead in the event loop.
2023-03-05wall_clock: Make use of SteadyClockMorph
2023-03-05common: Implement a method to change the Windows timer resolutionMorph
This utilizes undocumented NtDll functions to change the current timer resolution from the default of 1ms.
2023-03-05common: Implement a high resolution steady clockMorph
This implementation provides a consistent, high performance, and high resolution clock where/when std::chrono::steady_clock does not provide sufficient precision.
2023-03-01nvnflinger: fix nameLiam
2023-02-28cmake: use correct boost imported targetsAlexandre Bouvier
2023-02-26Revert "yuzu: config: Remove player 8 and 9 from config file"Narr the Reg
2023-02-26Merge pull request #9849 from ameerj/async-astcliamwhite
texture_cache: Add asynchronous ASTC texture decoding
2023-02-25yuzu: config: Remove player 8 and 9 from config fileNarr the Reg
2023-02-22configuration: Add async ASTC decode settingameerj
2023-02-22texture_cache: Add async texture decodingameerj
2023-02-21settings: Add more input settings to the logNarr the Reg
2023-02-12Update settings.cppm-HD
added missing graphical settings to RestoreGlobalState()