From 3ac2242e652a84b3f48939d8b22602463a1f2cae Mon Sep 17 00:00:00 2001
From: Ivan Epifanov <[EMAIL REDACTED]>
Date: Wed, 9 Dec 2020 12:37:39 +0300
Subject: [PATCH] Fix PerformanceCounter
---
src/timer/vita/SDL_systimer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/timer/vita/SDL_systimer.c b/src/timer/vita/SDL_systimer.c
index adc7b852a..91902d9fc 100644
--- a/src/timer/vita/SDL_systimer.c
+++ b/src/timer/vita/SDL_systimer.c
@@ -68,13 +68,13 @@ Uint32 SDL_GetTicks(void)
Uint64
SDL_GetPerformanceCounter(void)
{
- return SDL_GetTicks();
+ return sceKernelGetProcessTimeWide();
}
Uint64
SDL_GetPerformanceFrequency(void)
{
- return 1000;
+ return 1000000;
}
void SDL_Delay(Uint32 ms)