mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
Remove TODO, it was already an issue #318
This commit is contained in:
parent
76e4dbcc66
commit
3b7ecc8d32
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user