Morph
1b83c7eab4
(wall, native)_clock: Add GetGPUTick
Allows us to directly calculate the GPU tick without double conversion to and from the host clock tick.
3 years ago
Morph
c264630ba4
(wall, native)_clock: Rework NativeClock
3 years ago
Morph
fa3904acd9
x64: Simplify RDTSC on non-MSVC compilers
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
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
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
Morph
38db5c2026
native_clock: Round RDTSC frequency to the nearest 1000
3 years ago
Maide
68dcd946b7
Revert Coretiming PRs 8531 and 7454 ( #8591 )
3 years ago
Fernando Sahmkow
3adeb694b0
Adress Feedback.
4 years ago
Fernando Sahmkow
7f4debb936
Native clock: Use atomic ops as before.
4 years ago
Fernando Sahmkow
eadcaab9bd
Native Clock: remove inaccuracy mask.
4 years ago
Fernando Sahmkow
d3becee4c0
Core: Fix tests.
4 years ago
Fernando Sahmkow
6b03abbbad
Common: improve native clock.
4 years ago
Morph
2b87305d31
general: Convert source file copyright comments over to SPDX
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
4 years ago
Merry
42d6a01039
native_clock: Internal linkage for FencedRDTSC
__forceinline required on MSVC for function to be inlined
4 years ago
merry
b8d8677ed1
native_clock: Use lfence with rdtsc
4 years ago
merry
7470fdd77c
native_clock: Use writeback from CAS to avoid double-loading
4 years ago
Merry
18ecb3053b
native_clock: Use AtomicLoad128
4 years ago
ameerj
e70b4f3fc5
common: Reduce unused includes
4 years ago
Morph
fe2ff6b8a1
common: wall_clock: Utilize constants for ms, us, and ns ratios
4 years ago
Morph
875db1012b
native_clock: Wait for less time in EstimateRDTSCFrequency
In my testing, waiting for 200ms provided the same level of precision as the previous implementation when estimating the RDTSC frequency.
This significantly improves the yuzu executable launch times since we reduced the wait time from 3 seconds to 200 milliseconds.
4 years ago
Morph
2b9afa4d56
general: Replace high_resolution_clock with steady_clock
On some OSes, high_resolution_clock is an alias to system_clock and is not monotonic in nature. Replace this with steady_clock.
4 years ago
bunnei
e6f71e15a1
common: Merge uint128 to a single header file with inlines.
5 years ago
Fernando Sahmkow
659fb51dd9
X86/NativeClock: Reimplement RTDSC access to be lock free.
5 years ago
Fernando Sahmkow
50dd9a423a
X86/NativeClock: Improve performance of clock calculations on hot path.
5 years ago
Lioncash
29db886722
audio_core: Make shadowing and unused parameters errors
Moves the audio code closer to enabling warnings as errors in general.
5 years ago
Fernando Sahmkow
94a51e6b21
Core/Common: Address Feedback.
6 years ago
Fernando Sahmkow
1cc7c426df
X64 Clock: Reduce accuracy to be less or equal to guest accuracy.
6 years ago
Fernando Sahmkow
fb1d75a788
HostTiming: Pause the hardware clock on pause.
6 years ago
Fernando Sahmkow
0c789667d9
Common: Refactor & Document Wall clock.
6 years ago
Fernando Sahmkow
ee32067b10
Common: Implement WallClock Interface and implement a native clock for x64
6 years ago