minor interupt on halt responsivity improvement and final Cargo.toml args

This commit is contained in:
Mwa
2026-03-20 19:30:00 +01:00
parent b5962c6b50
commit af111c5992
4 changed files with 19 additions and 14 deletions

View File

@@ -1,9 +1,4 @@
#![feature(
likely_unlikely,
widening_mul,
sync_unsafe_cell,
int_lowest_highest_one
)]
#![feature(likely_unlikely, widening_mul, int_lowest_highest_one)]
#![deny(clippy::all)]
use std::env::args;
@@ -68,8 +63,9 @@ impl<'a> ApplicationHandler for App<'a> {
let size = window.inner_size();
let surface_texture = SurfaceTexture::new(size.width, size.height, window);
let pix = PixelsBuilder::new(WIDTH, HEIGHT, surface_texture)
.clear_color(Color::BLACK)
.blend_state(BlendState::REPLACE).build() ;
.clear_color(Color::BLACK)
.blend_state(BlendState::REPLACE)
.build();
self.pixels = Some(pix.unwrap());
}
@@ -212,10 +208,9 @@ impl<'a> ApplicationHandler for App<'a> {
for (addr, ubgr) in cpu::SHARED.screen_buf.iter().enumerate() {
let raw = ubgr.load(std::sync::atomic::Ordering::Relaxed);
#[cfg(not(feature = "rgba"))]
let rgba: [u8;4] = raw.to_le_bytes();
let rgba: [u8; 4] = raw.to_le_bytes();
#[cfg(feature = "rgba")]
let rgba =
raw.to_be_bytes();
let rgba = raw.to_be_bytes();
for i in 0..4 {
screen[addr * 4 + i] = rgba[i];
}