Henrik Rydgård
31c85ae0a5
Add the basics of a played-time tracker.
2023-11-26 19:15:38 +01:00
Henrik Rydgård
5a9a2bf6fe
Merge pull request #17779 from EmulatorJS/master
...
Cleanup emscripten libretro target
2023-08-13 21:40:24 +02:00
Ethan O'Brien
8426b35a80
Cleanup emscripten libretro build target
2023-08-12 14:38:35 -05:00
Henrik Rydgård
3e682ea733
Take out the "yield" arm64 implementation, that uses a builtin that some compilers miss.
...
It's not used anyway yet.
Fixes #17877
2023-08-09 12:20:27 +02:00
Henrik Rydgård
096c168dd7
Add yield() function to tell the CPU that we're busy-waiting (rare) ( #17862 )
...
* Add yield() function to tell the CPU that we're busy-waiting (rare)
Use it only for the busy-wait in lag sync, which only happens in
Windows.
* Buildfix attempt
2023-08-07 21:38:03 +02:00
Henrik Rydgård
0530dc57a8
Implement frame time measurement on Android using VK_GOOGLE_display_timing
2023-08-03 12:59:25 +02:00
Henrik Rydgård
e16cac6548
Initial work on supporting VK_GOOGLE_display_timing. Not working yet.
2023-08-03 11:11:16 +02:00
Henrik Rydgård
1dab6e5bef
Linux/Mac/iOS: Switch from gettimeofday() to clock_gettime(CLOCK_MONOTONIC)
...
More appropriate, and adds a raw function that can be used to match up
with VK_GOOGLE_display_timing.
2023-08-03 00:00:07 +02:00
Henrik Rydgård
feb4f9477a
Remove newly added dependencies on PPSSPP
2022-10-18 10:35:42 +02:00
Unknown W. Brackets
e3763d9c4e
Common: Avoid format warning with log timestamp.
2022-08-07 07:51:27 -07:00
Henrik Rydgård
97ee888aab
Add TODO to see if we can make better choices of time sources
2022-06-10 23:57:59 +02:00
Henrik Rydgård
e0f73507f9
Time the stress test
2022-04-08 11:55:49 +02:00
Unknown W. Brackets
63e623ecb2
Build: Fix some format truncation warnings.
...
Generally all should be safe already, but better to be sure.
2021-12-11 10:45:27 -08:00
Unknown W. Brackets
0ffac20fcd
Common: Include unistd.h before ctime on mingw.
...
This is required for localtime_r and similar to be available.
2021-02-14 10:30:10 -08:00
Henrik Rydgård
e97baa503a
Avoid a division in time_now_d(). Minor optimizations.
2020-10-10 19:05:46 +02:00
Henrik Rydgård
886a8b1ac6
Remove Timer.cpp/h. Move various collections into Common/Data/Collections.
2020-10-05 21:05:23 +02:00
Henrik Rydgård
17a9767585
Buildfixes
2020-09-29 15:51:51 +02:00
Henrik Rydgård
3162f30158
Merge base/basictypes.h into Common/Common.h (mostly).
2020-09-29 15:51:51 +02:00
Henrik Rydgård
5411a40f2a
TimeUtil.cpp cleanup
2020-09-29 00:36:29 +02:00
Henrik Rydgård
054acf768c
Don't cache time in a variable.
...
A little weirdness in the code that has stuck around for a long, long
time. It's really not necessary and mostly just confusing.
2020-09-24 23:52:43 +02:00
Henrik Rydgård
7aacf3df37
Remove time_now() - time_now_d() is the replacement. Absolute time values can't be stored reliably in floats.
2020-08-16 09:37:18 +02:00
Henrik Rydgård
ccc0331279
Move timeutil to Common. (Experiment to see how much work it is to move these).
2020-08-15 20:53:08 +02:00