mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
don't count FPS during rollback (#1027)
This commit is contained in:
+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