Browse Source

Fix PerformanceCounter

Ivan Epifanov 5 năm trước cách đây
mục cha
commit
3ac2242e65
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/timer/vita/SDL_systimer.c

+ 2 - 2
src/timer/vita/SDL_systimer.c

@@ -68,13 +68,13 @@ Uint32 SDL_GetTicks(void)
 Uint64
 Uint64
 SDL_GetPerformanceCounter(void)
 SDL_GetPerformanceCounter(void)
 {
 {
-    return SDL_GetTicks();
+    return sceKernelGetProcessTimeWide();
 }
 }
 
 
 Uint64
 Uint64
 SDL_GetPerformanceFrequency(void)
 SDL_GetPerformanceFrequency(void)
 {
 {
-    return 1000;
+    return 1000000;
 }
 }
 
 
 void SDL_Delay(Uint32 ms)
 void SDL_Delay(Uint32 ms)