summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-19core: core_timing: Re-initialize if single/multicore state changes.bunnei1-0/+2
2022-10-19core: core_timing: Remove unused IsHostTiming.bunnei1-5/+0
2022-10-19core: Partially persist emulation state across game boots.bunnei1-5/+2
2022-09-13Remove pause callbacks from coretimingKelebek11-6/+0
2022-07-28Revert Coretiming PRs 8531 and 7454 (#8591)Maide1-14/+11
2022-07-10Rework CoreTimingKelebek11-4/+19
2022-07-02Core timing: use only one thread.Fernando Sahmkow1-2/+0
2022-06-30Adress Feedback.Fernando Sahmkow1-1/+3
2022-06-28Core: Protect each event from race conditions within it.Fernando Sahmkow1-0/+1
2022-06-28Core: add missing include.Fernando Sahmkow1-0/+1
2022-06-28Core: Reimplement Core Timing.Fernando Sahmkow1-10/+11
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
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.
2022-04-12hle: kernel: Use std::mutex instead of spin locks for most kernel locking.bunnei1-3/+3
2021-11-04core: Remove unused includesameerj1-1/+0
2021-05-03core: Resolve misc cases of variable shadowingLioncash1-1/+1
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).
2020-12-03audio_core: Make shadowing and unused parameters errorsLioncash1-4/+4
Moves the audio code closer to enabling warnings as errors in general.
2020-07-28core_timing: Make use of uintptr_t to represent user_dataLioncash1-3/+4
Makes the interface future-proofed for supporting other platforms in the event we ever support platforms with differing pointer sizes. This way, we have a type in place that is always guaranteed to be able to represent a pointer exactly.
2020-07-16core_timing: Remove unused data memberLioncash1-2/+0
Shrinks the size of the CoreTiming class by 8 bytes.
2020-07-16core_timing: Make TimedCallback take std::chrono::nanosecondsLioncash1-6/+4
Enforces our desired time units directly with a concrete type.
2020-07-16core_timing: Make use of std::chrono with ScheduleEventLioncash1-4/+4
2020-06-27Audio: Correct buffer release for host timing.Fernando Sahmkow1-0/+5
2020-06-27SingleCore: Use Cycle Timing instead of Host Timing.Fernando Sahmkow1-3/+11
2020-06-27SingleCore: Move Host Timing from a sepparate thread to main cpu thread.Fernando Sahmkow1-0/+7
2020-06-27Kernel: Corrections to Scheduling.Fernando Sahmkow1-1/+1
2020-06-27HostTiming: Pause the hardware clock on pause.Fernando Sahmkow1-0/+1
2020-06-27General: Recover Prometheus project from harddrive failure Fernando Sahmkow1-51/+57
This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system.
2019-11-27core_timing: Use better reference tracking for EventType. (#3159)bunnei1-25/+20
* core_timing: Use better reference tracking for EventType. - Moves ownership of the event to the caller, ensuring we don't fire events for destroyed objects. - Removes need for unique names - we won't be using this for save states anyways.
2019-10-11Core_Timing: Address Feedback and suppress warnings.Fernando Sahmkow1-1/+1
2019-10-09Core Timing: General corrections and added tests.Fernando Sahmkow1-0/+1
2019-10-09Core Timing: Rework Core Timing to run all cores evenly.Fernando Sahmkow1-3/+21
2019-06-16Core_Timing: Make core_timing threadsafe by default.Fernando Sahmkow1-19/+4
The old implementation had faulty Threadsafe methods where events could be missing. This implementation unifies unsafe/safe methods and makes core timing thread safe overall.
2019-03-24core/core_timing: Make callback parameters consistentLioncash1-1/+1
In some cases, our callbacks were using s64 as a parameter, and in other cases, they were using an int, which is inconsistent. To make all callbacks consistent, we can just use an s64 as the type for late cycles, given it gets rid of the need to cast internally. While we're at it, also resolve some signed/unsigned conversions that were occurring related to the callback registration.
2019-02-16core_timing: Convert core timing into a classLioncash1-75/+136
Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces.
2019-02-12core_timing: Rename CoreTiming namespace to Core::TimingLioncash1-2/+2
Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace.
2018-08-13Core::CoreTiming: add UnscheduleEventThreadsafeB3n301-0/+1
2018-08-06core_timing: Make GetGlobalTimeUs() return std::chrono::microsecondsLioncash1-1/+2
Enforces the time unit being returned and also allows using the standard time utilities to manipulate it.
2018-08-06core_timing: Convert typedef into a type aliasLioncash1-4/+4
Makes the alias a little more readable from left-to-right.
2018-07-24core_timing: Split off utility functions into core_timing_utilMerryMage1-53/+0
2018-05-03core_timing: Don't include the log header in core timing's headerLioncash1-47/+4
Avoids propagating logging macros and facilities to files that may not need them. This also allows hiding an internal constant.
2018-04-30core_timing: Namespace all functions and constants in core_timing's headerLioncash1-2/+2
All of these variables and functions are related to timings and should be within the namespace.
2018-04-26core: Replace remaining old non-generic logger usages with fmt-capable equivalentsLioncash1-8/+8
LOG_GENERIC usages will be amended in a follow-up to keep API changes separate from interface changes, as it will require removing a parameter from the relevant function in the VMManager class.
2018-01-09core_timing: Use 1.020GHz for core clock rate.bunnei1-5/+3
2018-01-09CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119)B3n301-77/+124
* CoreTiming: New CoreTiming; Add Test for CoreTiming
2018-01-07core_timing: Increase clock speed for Switch docked.bunnei1-1/+1
2017-09-30Moved down_count to CoreTimingHuw Pascoe1-0/+6
2017-01-16CoreTiming: use named constant for ARM11 clock ratewwylele1-0/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-4/+2
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-5/+4
2016-07-23CoreTiming: avoid overflowwwylele1-1/+1
2015-05-29Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot1-1/+1
2015-05-07Common: Remove common.hYuri Kunde Schlesner1-1/+1
2015-01-07CoreTiming: Ported the CoreTiming namespace from PPSSPPSubv1-23/+54
Implemented the required calls to make it work. CoreTiming: Added a new logging class Core_Timing.
2014-12-21License changepurpasmart961-2/+2
2014-11-18Remove extraneous semicolonsLioncash1-1/+1
2014-04-09fixed project includes to use new directory structurebunnei1-1/+1
2014-04-09got rid of 'src' folders in each sub-projectbunnei1-0/+0
2014-04-09fixed licensing issue with core_timing being GPL v2+ instead of Dolphin's GPL v2bunnei1-66/+50
2013-10-02added core_timing and system modules to core vcprojShizZy1-0/+125