24 Commits
Author SHA1 Message Date
Stenzek 85c4acea80 Timer: Use global initializer for timer frequency on Windows
Gets rid of a branch.
2026-09-26 17:16:11 +10:00
Stenzek 3622df217b Common: Use __yield() for CPU-pause on ARM 2026-09-21 14:43:38 +10:00
Stenzek 73b571c4b7 Timer: Use pause intrinsics when spin-sleeping
Hopefully reduce power a tiny amount?
2026-09-21 14:32:37 +10:00
Stenzek 24ecfdd94f Misc: Use C++23 elifdef/elifndef
And drop macros for platforms not supported in the public repo.
2026-09-21 14:22:01 +10:00
Stenzek aafc029682 Misc: Un-namespace Timer 2024-11-29 20:13:37 +10:00
Stenzek affbdfc350 Timer: Fix >1 second sleeps on MacOS 2024-11-24 23:29:28 +10:00
Stenzek 0dc78e4c23 Timer: Fix sleep timer handle leak 2024-10-30 15:19:10 +10:00
Stenzek 4132b5ef3d Settings: Remove 'Increase Timer Resolution' option
It's no longer needed since I switched to high-resolution waitable
timers, which are supported on Win10 1803+.
2024-09-28 23:50:44 +10:00
Stenzek 7f4e5d55db Misc: Update copyright headers 2024-09-01 22:08:31 +10:00
Stenzek 1ba32585df Common: Add Timer::ResetIfNPassed() 2023-09-16 19:00:29 +10:00
Stenzek 76b5b8ad06 MSBuild: Support building with clang-cl 2023-08-21 22:38:55 +10:00
Connor McLaughlin 3b038fd27d System: Further improve frame timing consistency 2023-01-12 18:02:12 +10:00
Connor McLaughlin 8c7a192128 Misc: Add copyright/license statement to applicable files
Should've did this in the beginning.
2022-12-04 21:03:49 +10:00
Connor McLaughlin f8cb480779 Timer: Improve SleepUntil() 2022-12-04 15:40:46 +10:00
Connor McLaughlin 7bbacd2392 Misc: Remove unused code 2022-08-22 19:55:38 +10:00
Connor McLaughlin ae0d60fcd8 Timer: Spin for last 1ms on non-windows too 2022-08-10 13:02:23 +10:00
Connor McLaughlin b074c0d1ee System: Make inter-frame sleep slightly more precise 2022-07-30 00:45:26 +10:00
Connor McLaughlin af91fcf195 Backport more common classes 2022-07-21 17:29:58 +10:00
Connor McLaughlin 03ab18909a Common: Add UWP support for helper classes 2021-07-11 15:20:38 +10:00
Connor McLaughlin 911e9a37f1 WIN32 macro -> _WIN32 2021-06-30 14:38:07 +10:00
Connor McLaughlin 62718b3c50 Common/Timer: Add missing return when timer wait succeeds 2021-04-12 20:26:50 +10:00
Connor McLaughlin 9316ce532b Common/Timer: Add SleepUntil() method 2021-01-28 21:04:23 +10:00
Connor McLaughlin 52f5ca7e28 Common/Timer: Add additional sleep functions 2021-01-26 03:38:31 +10:00
Connor McLaughlin 71c1e243fe Remove YBaseLib dependency 2020-01-10 13:40:53 +10:00