From ad1f5ea8b85d6bef9b3d1e18b09419a89173c04e Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 10 Apr 2022 23:10:06 -0300 Subject: [PATCH] chore: ignore instead of logging errors for perf reasons --- src/ppu.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ppu.zig b/src/ppu.zig index be8c039..712aa1c 100644 --- a/src/ppu.zig +++ b/src/ppu.zig @@ -457,7 +457,7 @@ const Palette = struct { self.buf[addr + 1] = @truncate(u8, value >> 8); self.buf[addr + 0] = @truncate(u8, value >> 0); }, - u8 => log.err("Tried to write {} 0x{X:0>2} to 0x{X:0>8}", .{ T, value, address }), + u8 => return, else => @compileError("PALRAM: Unsupported write width"), } } @@ -512,7 +512,7 @@ const Vram = struct { self.buf[addr + 1] = @truncate(u8, value >> 8); self.buf[addr + 0] = @truncate(u8, value >> 0); }, - u8 => log.err("Tried to write {} 0x{X:0>2} to 0x{X:0>8}", .{ T, value, address }), + u8 => return, else => @compileError("VRAM: Unsupported write width"), } } @@ -568,7 +568,7 @@ const Oam = struct { self.buf[addr + 1] = @truncate(u8, value >> 8); self.buf[addr + 0] = @truncate(u8, value >> 0); }, - u8 => log.err("Tried to write {} 0x{X:0>2} to 0x{X:0>8}", .{ T, value, address }), + u8 => return, else => @compileError("OAM: Unsupported write width"), } }