chore: suggest inline for hot code

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-09-24 16:16:14 -03:00
parent dbbf87af52
commit 64230973f1
1 changed files with 1 additions and 0 deletions

View File

@ -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
}