don't count FPS during rollback (#1027)

This commit is contained in:
Logan McNaughton
2026-06-07 09:28:09 +02:00
committed by GitHub
parent 820c577f5f
commit a7df8d837f
+4 -2
View File
@@ -113,7 +113,9 @@ pub fn write_regs(device: &mut device::Device, address: u64, value: u32, mask: u
if device.netplay.is_none() {
savestates::process_savestates(device);
}
let _ = device.ui.video.fps_tx.as_ref().unwrap().try_send(true);
if !netplay::netplay_in_rollback(device.netplay.as_ref()) {
let _ = device.ui.video.fps_tx.as_ref().unwrap().try_send(true);
}
}
}
_ => {
@@ -132,8 +134,8 @@ pub fn vertical_interrupt_event(device: &mut device::Device) {
if !netplay::netplay_in_rollback(device.netplay.as_ref()) {
ui::video::render_frame();
let _ = device.ui.video.vis_tx.as_ref().unwrap().try_send(true);
}
let _ = device.ui.video.vis_tx.as_ref().unwrap().try_send(true);
retroachievements::do_frame();