Liam
52c885cd03
container_hash: use climits
3 years ago
Morph
b203f9d714
common: Port boost's hash_value implementation
Ports a small subset of boost's hash_value implementation (<= 1.80.0).
3 years ago
Morph
79aa81015f
zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize
3 years ago
Liam
156516e399
kernel: use KTypedAddress for addresses
3 years ago
Morph
05ba40b98e
bounded_threadsafe_queue: Refactor Pop
Introduces PopModes to bring waiting logic into Pop, similar to Push.
3 years ago
Morph
70b1c2e8e0
bounded_threadsafe_queue: Add producer cv to avoid busy waiting
3 years ago
Morph
62fd55e5fe
bounded_threadsafe_queue: Deduplicate and add PushModes
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.
3 years ago
Morph
281e99f09d
bounded_threadsafe_queue: Add TryPush
3 years ago
Morph
623cbd908e
logging: Make use of bounded queue
3 years ago
Morph
c4314b231f
bounded_threadsafe_queue: Use simplified impl of bounded queue
Provides a simplified SPSC, MPSC, and MPMC bounded queue implementation using mutexes.
3 years ago
bunnei
a59583c7ab
common: string_util: Use std::string_view for UTF16ToUTF8/UTF8ToUTF16W.
3 years ago
bunnei
b9533c81f7
common: bounded_threadsafe_queue: Use polyfill_thread.
3 years ago
Liam
5be8a74b0c
general: fix spelling mistakes
3 years ago
Morph
e27dced550
native_clock: Wait for 10 seconds instead of 30
It was experimentally determined to be sufficient.
3 years ago
Morph
d766e783ea
native_clock: Use RealTimeClock instead of SteadyClock
We want to synchronize RDTSC to real time.
3 years ago
Morph
c3855de299
steady_clock: Introduce a real time clock
3 years ago
Morph
afa678be3a
native_clock: Re-adjust the RDTSC frequency
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.
3 years ago
Narr the Reg
822a967bca
input_common: Minor typo issues ( #9922 )
3 years ago
german77
db3f4f7515
input_common: Increase mouse sensitivity range
3 years ago
Liam
242691d871
common: make BitCast constexpr
3 years ago
Liam
2e637e5519
kernel: avoid signed overflow UB on MSVC
3 years ago
Ikko Eltociear Ashimine
538c3df844
fix typo in settings.h
Intial -> Initial
3 years ago
Morph
38db5c2026
native_clock: Round RDTSC frequency to the nearest 1000
3 years ago
Morph
56547b9b88
timer_resolution: Set current process to High QoS
Ensures that this process is treated as a high performance process by the Windows scheduler.
3 years ago
Morph
e25334b8b3
core_timing: Use higher precision sleeps on Windows
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.
3 years ago
Morph
22d58e43dc
wall_clock: Make use of SteadyClock
3 years ago
Morph
59b8488e90
common: Implement a method to change the Windows timer resolution
This utilizes undocumented NtDll functions to change the current timer resolution from the default of 1ms.
3 years ago
Morph
f869dabc4a
common: Implement a high resolution steady clock
This implementation provides a consistent, high performance, and high resolution clock where/when std::chrono::steady_clock does not provide sufficient precision.
3 years ago
Liam
c191cf75bb
nvnflinger: fix name
3 years ago
Alexandre Bouvier
e9ec2e4cf0
cmake: use correct boost imported targets
3 years ago
Narr the Reg
2e388209d7
Revert "yuzu: config: Remove player 8 and 9 from config file"
3 years ago
Narr the Reg
f6531fb17c
yuzu: config: Remove player 8 and 9 from config file
3 years ago
ameerj
c5386e2179
configuration: Add async ASTC decode setting
3 years ago
ameerj
08c1dc9587
texture_cache: Add async texture decoding
3 years ago
Narr the Reg
1156e6ae8f
settings: Add more input settings to the log
3 years ago
arades79
60a68839ee
remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
arades79
e342fecde6
don't use static inside constexpr function
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
arades79
adcef452e0
add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
m-HD
fa7436638c
Update settings.cpp
added missing graphical settings to RestoreGlobalState()
3 years ago
Narr the Reg
75039440f3
input_common: Reintroduce custom pro controller support
3 years ago
ameerj
7cc5da4a9f
Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"
This reverts commit 153fa289d2 , reversing
changes made to 20676b3b5a .
3 years ago
liamwhite
f74a95b6fb
Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"
3 years ago
german77
db99ab5431
input_common: Implement turbo buttons
3 years ago
Levi Behunin
2ff6c44168
Move to Clang Format 15
Depends on https://github.com/yuzu-emu/build-environments/pull/69
clang-15 primary run
3 years ago
Liam
6237e8d92f
polyfill_thread: satisfy execution ordering requirements of stop_callback
3 years ago
Morph
337f943c97
polyfill_thread: Implement StoppableTimedWait
StoppableTimedWait allows for a timed wait to be stopped immediately after a stop is requested.
This is useful in cases where long duration thread sleeps are needed and allows for immediate joining of waiting threads after a stop is requested.
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
3 years ago
Alexandre Bouvier
8768e16b6c
cmake: prefer system llvm library
3 years ago
german77
5cbeb6f1c4
input_common: Use DriverResult on all engines
3 years ago
Narr the Reg
216bdb7884
input_common: Disable SDL driver with switch controllers
3 years ago
Narr the Reg
0e41ae9595
input_common: Initial skeleton for custom joycon driver
3 years ago