From 762d4ae31bb76e408d19cbb618b73097ee435b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sun, 4 Jun 2023 13:52:21 +0100 Subject: [PATCH] chore: tiny iptimization --- src/ppu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ppu.rs b/src/ppu.rs index 96d6de86..d8c64c84 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -1110,7 +1110,7 @@ impl Ppu { // calculates the sprite line offset by using the SCX register // shifted by 3 meaning that the tiles are 8x8 - let mut line_offset: usize = (scx >> 3) as usize; + let mut line_offset = (scx >> 3) as usize; // calculates the index of the initial tile in drawing, // if the tile data set in use is #1, the indexes are -- GitLab