Morph
d2cfe25b07
x64: cpu_detect: Add detection of waitpkg instructions
waitpkg introduces 3 instructions, UMONITOR, UMWAIT and TPAUSE.
3 years ago
Liam
7017f04ee8
container_hash: use climits
3 years ago
Morph
9971cd1d55
common: Port boost's hash_value implementation
Ports a small subset of boost's hash_value implementation (<= 1.80.0).
3 years ago
Morph
abe2ad7aac
zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSize
3 years ago
Liam
fb49ec19c1
kernel: use KTypedAddress for addresses
3 years ago
Morph
197d756560
bounded_threadsafe_queue: Refactor Pop
Introduces PopModes to bring waiting logic into Pop, similar to Push.
3 years ago
Morph
8c56481249
bounded_threadsafe_queue: Add producer cv to avoid busy waiting
3 years ago
Morph
407dc917f1
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
15d573194c
bounded_threadsafe_queue: Add TryPush
3 years ago
Morph
f28ca5361f
logging: Make use of bounded queue
3 years ago
Morph
306840a580
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
00d401d639
common: string_util: Use std::string_view for UTF16ToUTF8/UTF8ToUTF16W.
3 years ago
bunnei
0eb3fa05e5
common: bounded_threadsafe_queue: Use polyfill_thread.
3 years ago
Liam
600f325d87
general: fix spelling mistakes
3 years ago
Morph
d718eab351
native_clock: Wait for 10 seconds instead of 30
It was experimentally determined to be sufficient.
3 years ago
Morph
c27a626b5b
native_clock: Use RealTimeClock instead of SteadyClock
We want to synchronize RDTSC to real time.
3 years ago
Morph
6f9918552c
steady_clock: Introduce a real time clock
3 years ago
Morph
dcd13a7566
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
757aafa582
input_common: Minor typo issues ( #9922 )
3 years ago
german77
9a9e5844d3
input_common: Increase mouse sensitivity range
3 years ago
Liam
64dcb40db1
common: make BitCast constexpr
3 years ago
Liam
d45ac00d48
kernel: avoid signed overflow UB on MSVC
3 years ago
Ikko Eltociear Ashimine
c161e3f433
fix typo in settings.h
Intial -> Initial
3 years ago
Morph
376a414f5b
native_clock: Round RDTSC frequency to the nearest 1000
3 years ago
Morph
026eaddbee
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
bff1453282
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
7fffdf83b7
wall_clock: Make use of SteadyClock
3 years ago
Morph
1ed49f92dd
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
bd09c82521
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
809148e1a5
nvnflinger: fix name
3 years ago
Alexandre Bouvier
57fd8b1f45
cmake: use correct boost imported targets
3 years ago
Narr the Reg
ff11fdb07e
Revert "yuzu: config: Remove player 8 and 9 from config file"
3 years ago
Narr the Reg
60688bf0d5
yuzu: config: Remove player 8 and 9 from config file
3 years ago
ameerj
b5bcd8c71b
configuration: Add async ASTC decode setting
3 years ago
ameerj
090bc588e5
texture_cache: Add async texture decoding
3 years ago
Narr the Reg
db2785082b
settings: Add more input settings to the log
3 years ago
arades79
683019878f
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
392a029ef4
don't use static inside constexpr function
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
arades79
45e13b03f3
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
9df92bad2a
Update settings.cpp
added missing graphical settings to RestoreGlobalState()
3 years ago
Narr the Reg
acba9a6b76
input_common: Reintroduce custom pro controller support
3 years ago
ameerj
2d2522693e
Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"
This reverts commit 25fc5c0e11 , reversing
changes made to af20e25081 .
3 years ago
liamwhite
b01698775b
Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"
3 years ago
german77
75e81885b0
input_common: Implement turbo buttons
3 years ago
Levi Behunin
d5fc56db4b
Move to Clang Format 15
Depends on https://github.com/yuzu-emu/build-environments/pull/69
clang-15 primary run
3 years ago
Liam
619c0e70f0
polyfill_thread: satisfy execution ordering requirements of stop_callback
3 years ago
Morph
9b0563fa87
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
34b1ea9c19
cmake: prefer system llvm library
3 years ago
german77
527dad7097
input_common: Use DriverResult on all engines
3 years ago
Narr the Reg
2d802893e7
input_common: Disable SDL driver with switch controllers
3 years ago