mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-12 17:19:00 +01:00
don't count FPS during rollback (#1027)
This commit is contained in:
1 parent
820c577f5f
commit
a7df8d837f
1 file changed
+4
-2
+4
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user