lizzie
d1ac5b2e50
[qt_common, core, audio] remove duplicate string literal definitions, inline SystemManager::threadfunc, increase latency of audio shutdown ( #3030 )
Very small code cleanup, also remove `[[unlikely]]` because it doesn't matter + increase latency of audio render when shutting down
Signed-off-by: lizzie lizzie@eden-emu.dev
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3030
Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
1 month ago
crueter
f1e74f6855
[meta] remove MicroProfile ( #185 )
Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/185
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
5 months ago
Gamer64
1f34d836b4
Add cmake option to enable microprofile ( #179 )
Backported from dd9c743041 .
Co-authored-by: PabloMK7 <hackyglitch2@gmail.com>
Co-authored-by: Shinmegumi <shinmegumi@eden-emu.dev>
Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/179
Co-authored-by: Gamer64 <gamer64@eden-emu.dev>
Co-committed-by: Gamer64 <gamer64@eden-emu.dev>
5 months ago
Gamer64
ac675c5296
[core]: Custom CPU Ticks rewrite ( #118 )
For now this is for testing purposes
Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/118
Co-authored-by: Gamer64 <gamer64@eden-emu.dev>
Co-committed-by: Gamer64 <gamer64@eden-emu.dev>
5 months ago
crueter
dceb3c2206
fix license headers
Signed-off-by: crueter <swurl@swurl.xyz>
6 months ago
Gamer64
059d89441e
[core, frontend] Add Custom CPU Ticks option ( #217 )
Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com>
Co-authored-by: crueter <swurl@swurl.xyz>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/217
6 months ago
swurl
b78089e978
Fast CPU Time & Improved Fast GPU Time ( #109 )
needs android setting
Signed-off-by: swurl <swurl@swurl.xyz>
Co-authored-by: Aleksandr Popovich <alekpopo@pm.me>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/109
Co-authored-by: swurl <swurl@swurl.xyz>
Co-committed-by: swurl <swurl@swurl.xyz>
7 months ago
Pavel Barabanov
70c2439d8c
Add sync core speed
9 months ago
Kelebek1
52c35521bd
Rework time service to fix time passing offline.
2 years ago
Liam
0865db645e
core_timing: block advance thread while clearing and signal after
2 years ago
Liam
f60d4cbe93
core_timing: handle concurrent unscheduling of looping events
2 years ago
Liam
468ef514f1
core_timing: use static typing for no-wait unschedule
2 years ago
Liam
b9545c5a0e
core_timing: remove user data value
2 years ago
Liam
e65d90b331
core_timing: lock event queue access
2 years ago
Merry
6b1bac89fd
core_timing: Attempt to reduce heap sifting
2 years ago
Merry
4e5157a6f1
core_timing: Use a fibonacci heap
2 years ago
Kelebek1
42638691b5
Use spans over guest memory where possible instead of copying data.
3 years ago
Morph
81ba61a0bd
core_timing: Remove GetCurrentTimerResolution in CoreTiming loop
Other programs may change this value, but if thousands of syscalls in this loop is undesirable, then we can just set this once.
3 years ago
Morph
52a219cfe9
core_timing: Fix SingleCore cycle timer
3 years ago
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
2856fadaa0
core_timing: Use CNTPCT as the guest CPU tick
Previously, we were mixing the raw CPU frequency and CNTFRQ.
The raw CPU frequency (1020 MHz) should've never been used as CNTPCT (whose frequency is CNTFRQ) is the only counter available.
3 years ago
Morph
e67edd4bb7
core_timing: Make use of MicroSleep for x64 CPUs
For CPUs that support tpause, this should result in significant CPU power savings over thread yield in this spin wait.
3 years ago
Morph
ddb330121a
core: Promote CPU/GPU threads to time critical
And also demote Audren and CoreTiming to High thread priority.
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
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
adcef452e0
add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
Liam
e1b0b3d0db
timing: wait for completion on unregister
3 years ago
bunnei
438c1b5c18
core: core_timing: Re-initialize if single/multicore state changes.
3 years ago
bunnei
a35c884097
core: Partially persist emulation state across game boots.
3 years ago
Liam
d10787b40b
core_timing: use high-precision sleeps on non-Windows targets
3 years ago
Liam
47fc168030
common: remove "yuzu:" prefix from thread names
3 years ago
Kelebek1
c6d4071162
Remove pause callbacks from coretiming
3 years ago
Morph
b5847efa10
core_timing: Sleep in discrete intervals, yield during spin
3 years ago
Kelebek1
4a764c5df7
Add missing looping event schedule signal
3 years ago
Kelebek1
992af57f8d
Make coretiming waiting more accurate
3 years ago
Maide
68dcd946b7
Revert Coretiming PRs 8531 and 7454 ( #8591 )
3 years ago
Kelebek1
03de5e053d
Rework CoreTiming
4 years ago
Fernando Sahmkow
95cb99b186
Core timing: use only one thread.
4 years ago
Fernando Sahmkow
3adeb694b0
Adress Feedback.
4 years ago
Fernando Sahmkow
2d838d8ec9
Address feedback.
4 years ago
Fernando Sahmkow
0043292951
Core: Protect each event from race conditions within it.
4 years ago
Fernando Sahmkow
1541f198eb
Core/Common: Corrections to core timing and add critical priority.
4 years ago
Fernando Sahmkow
ca686b6d07
Core: Reimplement Core Timing.
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
Lioncash
84b656fbbd
core: Resolve misc cases of variable shadowing
Resolves shadowing warnings that aren't in a particularly large
subsection of core. Brings us closer to turning -Wshadow into an error.
All that remains now is for cases in the kernel (left untouched for now
since a big change by bunnei is pending), and a few left over in the
service code (will be tackled next).
5 years ago
bunnei
7f4d928f77
core: hle: Add missing calls to MicroProfileOnThreadExit.
5 years ago
bunnei
deb3536936
Revert "core: Fix clang build"
5 years ago
Lioncash
18636013c9
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
5 years ago
Lioncash
96214f8600
core_timing: Remove unused header
5 years ago
Lioncash
aae74a55da
core_timing: Move clock initializer into constructor initializer list
Same behavior, minus unnecessary zeroing out of the pointer.
5 years ago