Remove TODO, it was already an issue #318

This commit is contained in:
IntegratedQuantum 2025-07-31 15:30:57 +02:00
parent 76e4dbcc66
commit 3b7ecc8d32

View File

@ -1184,7 +1184,7 @@ pub fn PaletteCompressedRegion(T: type, size: comptime_int) type { // MARK: Pale
var impl = self.impl.raw; var impl = self.impl.raw;
std.debug.assert(impl.paletteLength <= impl.palette.len); std.debug.assert(impl.paletteLength <= impl.palette.len);
var paletteIndex: u32 = 0; var paletteIndex: u32 = 0;
while(paletteIndex < impl.paletteLength) : (paletteIndex += 1) { // TODO: There got to be a faster way to do this. Either using SIMD or using a cache or hashmap. while(paletteIndex < impl.paletteLength) : (paletteIndex += 1) {
if(std.meta.eql(impl.palette[paletteIndex].load(.unordered), val)) { if(std.meta.eql(impl.palette[paletteIndex].load(.unordered), val)) {
break; break;
} }