Little optimization to check_interrupts

This commit is contained in:
Franco Colmenarez 2021-11-14 17:04:17 -05:00
parent 854b25b253
commit d4e8ec1f3f
2 changed files with 2 additions and 2 deletions

View File

@ -921,7 +921,7 @@ impl CPU {
if interrupts != 0 {
self.is_halted = false;
}
if !self.ime {
if !self.ime || interrupts == 0 {
return None;
}

View File

@ -27,7 +27,7 @@ pub fn create_pixels(width: u32, height: u32, window: &Window) -> Pixels {
},
..wgpu::DeviceDescriptor::default()
})
.enable_vsync(true)
.enable_vsync(false)
.build()
.unwrap()
}