Implement frame time measurement on Android using VK_GOOGLE_display_timing

This commit is contained in:
Henrik Rydgård committed 2023-08-03 12:59:25 +02:00
1 parent 9b038d6574
commit 0530dc57a8
9 files changed
+96 -72

No files matched your search

+11
View File
@@ -54,6 +54,9 @@ double from_time_raw(uint64_t raw_time) {
return (double)raw_time * (1.0 / nanos);
}
double from_time_raw_relative(uint64_t raw_time) {
return from_time_raw(raw_time);
}
#elif PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(LINUX) || PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS)
@@ -78,6 +81,10 @@ double time_now_d() {
return from_time_raw(raw_time);
}
double from_time_raw_relative(uint64_t raw_time) {
return (double)raw_time * (1.0 / nanos);
}
#else
double time_now_d() {
@@ -99,6 +106,10 @@ double from_time_raw(uint64_t raw_time) {
return (double)raw_time * (1.0 / nanos);
}
double from_time_raw_relative(uint64_t raw_time) {
return from_time_raw(raw_time);
}
#endif
void sleep_ms(int ms) {