aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_timing.h
AgeCommit message (Collapse)Author
2019-11-26core_timing: Use better reference tracking for EventType. (#3159)bunnei
* 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 Sahmkow
2019-10-09Core Timing: General corrections and added tests.Fernando Sahmkow
2019-10-09Core Timing: Rework Core Timing to run all cores evenly.Fernando Sahmkow
2019-06-16Core_Timing: Make core_timing threadsafe by default.Fernando Sahmkow
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 consistentLioncash
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-15core_timing: Convert core timing into a classLioncash
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::TimingLioncash
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 UnscheduleEventThreadsafeB3n30
2018-08-06Merge pull request #934 from lioncash/chronobunnei
core_timing: Make GetGlobalTimeUs() return std::chrono::microseconds
2018-08-05core_timing: Make GetGlobalTimeUs() return std::chrono::microsecondsLioncash
Enforces the time unit being returned and also allows using the standard time utilities to manipulate it.
2018-08-05core_timing: Convert typedef into a type aliasLioncash
Makes the alias a little more readable from left-to-right.
2018-07-24core_timing: Split off utility functions into core_timing_utilMerryMage
2018-05-03core_timing: Don't include the log header in core timing's headerLioncash
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 headerLioncash
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 ↵Lioncash
equivalents 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-08core_timing: Use 1.020GHz for core clock rate.bunnei
2018-01-08CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119)B3n30
* CoreTiming: New CoreTiming; Add Test for CoreTiming
2018-01-07core_timing: Increase clock speed for Switch docked.bunnei
2017-09-30Moved down_count to CoreTimingHuw Pascoe
2017-01-16CoreTiming: use named constant for ARM11 clock ratewwylele
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
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 Peyrot
2016-07-23CoreTiming: avoid overflowwwylele
2015-05-29Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot
2015-05-07Common: Remove common.hYuri Kunde Schlesner
2015-01-07CoreTiming: Ported the CoreTiming namespace from PPSSPPSubv
Implemented the required calls to make it work. CoreTiming: Added a new logging class Core_Timing.
2014-12-20License changepurpasmart96
2014-11-18Remove extraneous semicolonsLioncash
2014-04-08fixed project includes to use new directory structurebunnei
2014-04-08got rid of 'src' folders in each sub-projectbunnei