From 64230973f15151a585e77a4f01f9e7c52de7db45 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 24 Sep 2021 16:16:14 -0300 Subject: [PATCH] chore: suggest inline for hot code --- src/ppu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ppu.rs b/src/ppu.rs index 9e80a09..30c6283 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -418,6 +418,7 @@ impl Ppu { self.frame_buf.swap_with_slice(&mut blank); } + #[inline] pub(crate) fn frame_buf(&self) -> &[u8; GB_HEIGHT * GB_WIDTH * 4] { &self.frame_buf }