rsx/overlays: Ellide redundant clock read

This commit is contained in:
kd-11 2023-02-03 03:36:32 +03:00 committed by kd-11
parent 4c59359cf7
commit 170fd813f0

View file

@ -24,7 +24,7 @@ namespace rsx
else
{
const auto now = rsx::uclock();
m_current_frame_duration_us += (rsx::uclock() - m_last_update_timestamp_us);
m_current_frame_duration_us += (now - m_last_update_timestamp_us);
m_last_update_timestamp_us = now;
}