From dd4722fc1f60f517e0ed159672a7b5c13a6a79f2 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 29 May 2022 12:54:24 +0300 Subject: [PATCH] rsx: Fix second VBLANK time Turns out that both VBLANK time and flip time clock at 80Mhz which is MFTB rate, just that cellGcmGetLastFlipTime is missing conversion to microseconds, so odd. --- rpcs3/Emu/Cell/lv2/sys_rsx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp index 8c17ff604f..0c40ed1418 100644 --- a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp @@ -751,8 +751,8 @@ error_code sys_rsx_context_attribute(u32 context_id, u32 package_id, u64 a3, u64 // todo: this is wrong and should be 'second' vblank handler and freq, but since currently everything is reported as being 59.94, this should be fine vm::_ref(render->device_addr + 0x30) = 1; - // Time point is supplied in argument 4 - const u64 current_time = a4; + // Time point is supplied in argument 4 (todo: convert it to MFTB rate and use it) + const u64 current_time = rsxTimeStamp(); driverInfo.head[a3].lastSecondVTime = current_time;