chore: ignore instead of logging errors for perf reasons

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:12:34 -03:00
parent f039c891c7
commit 135987745c
1 changed files with 3 additions and 3 deletions

View File

@ -457,7 +457,7 @@ const Palette = struct {
self.buf[addr + 1] = @truncate(u8, value >> 8); self.buf[addr + 1] = @truncate(u8, value >> 8);
self.buf[addr + 0] = @truncate(u8, value >> 0); 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"), else => @compileError("PALRAM: Unsupported write width"),
} }
} }
@ -512,7 +512,7 @@ const Vram = struct {
self.buf[addr + 1] = @truncate(u8, value >> 8); self.buf[addr + 1] = @truncate(u8, value >> 8);
self.buf[addr + 0] = @truncate(u8, value >> 0); 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"), else => @compileError("VRAM: Unsupported write width"),
} }
} }
@ -568,7 +568,7 @@ const Oam = struct {
self.buf[addr + 1] = @truncate(u8, value >> 8); self.buf[addr + 1] = @truncate(u8, value >> 8);
self.buf[addr + 0] = @truncate(u8, value >> 0); 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"), else => @compileError("OAM: Unsupported write width"),
} }
} }