double framebuffer

This commit is contained in:
2025-10-27 19:46:09 -06:00
parent 4c58f66c94
commit 10c9457953
5 changed files with 46 additions and 15 deletions

View File

@@ -65,8 +65,9 @@ pub mod display {
abi_sys::lock_display(lock);
}
const BUF_SIZE: usize = 250 * 1024; // tune this for performance
// const BUF_SIZE: usize = 15 * 1024; // tune this for performance
// static mut BUF: [CPixel; BUF_SIZE] = [CPixel::new(); BUF_SIZE];
const BUF_SIZE: usize = 250 * 1024; // tune this for performance
static mut BUF: Lazy<Vec<CPixel>> = Lazy::new(|| vec![const { CPixel::new() }; BUF_SIZE]);
pub struct Display;