mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Update the best proto-pal relative size when a new best is found
*facepalm*
This commit is contained in:
@@ -393,16 +393,18 @@ std::tuple<DefaultInitVec<size_t>, size_t>
|
||||
continue;
|
||||
}
|
||||
|
||||
double relSize = assignments[i].relSizeOf(protoPal);
|
||||
options.verbosePrint(
|
||||
Options::VERB_DEBUG,
|
||||
"%zu/%zu: Rel size: %f (size = %zu)\n",
|
||||
i + 1,
|
||||
assignments.size(),
|
||||
assignments[i].relSizeOf(protoPal),
|
||||
relSize,
|
||||
protoPal.size()
|
||||
);
|
||||
if (assignments[i].relSizeOf(protoPal) < bestRelSize) {
|
||||
if (relSize < bestRelSize) {
|
||||
bestPalIndex = i;
|
||||
bestRelSize = relSize;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user