From f4ae5cf8e06dcf87cecd239bb10ec40bca33adf0 Mon Sep 17 00:00:00 2001 From: Crow-bar Date: Mon, 3 Oct 2022 08:19:49 +0300 Subject: [PATCH] platform: using sceKernelGetSystemTimeWide instead of sceRtcGetCurrentTick --- engine/platform/psp/sys_psp.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/engine/platform/psp/sys_psp.c b/engine/platform/psp/sys_psp.c index 5e2cc518..f5bf29fb 100644 --- a/engine/platform/psp/sys_psp.c +++ b/engine/platform/psp/sys_psp.c @@ -73,24 +73,7 @@ static int Platform_SetupCallbacks( void ) #if XASH_TIMER == TIMER_PSP double Platform_DoubleTime( void ) { -/* - static u64 start_ticks; - static qboolean timer_init = false; - u64 current_ticks; - - if ( !timer_init ) - { - sceRtcGetCurrentTick( &start_ticks ); - timer_init = true; - } - sceRtcGetCurrentTick( ¤t_ticks ); - - return ( current_ticks - start_ticks ) * 0.000001; -*/ - u64 current_ticks; - sceRtcGetCurrentTick( ¤t_ticks ); - - return ( double )current_ticks * 0.000001; + return ( double )sceKernelGetSystemTimeWide() * 0.000001; // microseconds to seconds } void Platform_Sleep( int msec )