This commit is contained in:
2024-11-06 21:11:11 -05:00
parent 966b24697c
commit d8c8867937
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
test:
cargo test
clippy:
cargo clippy --all-targets --all-features
run:
cargo run --bin snes-frontend
run-release:
cargo run --bin snes-frontend --release
+1
View File
@@ -94,6 +94,7 @@ impl PPU {
// ----
// possible optimizations:
// - Fetch all of the necessary data before starting to render the scanline
// - Pre-render each background in a framebuffer and only update the framebuffer if either the tileset or charset changes
let tileset_vram_base_address = self.registers.get_bg_tile_base_address(background) as usize;
let charset_vram_base_address = self.registers.get_bg_char_base_address(background) as usize;
let (bg_size_width, _) = self.registers.get_bg_size(background).to_usize();