mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Implement frame time measurement on Android using VK_GOOGLE_display_timing
This commit is contained in:
1 parent
9b038d6574
commit
0530dc57a8
9 files changed
+96
-72
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user