mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove a TODO comment about overlapping proto-palettes
The original algorithm makes a simplifying assumption that one proto-palette does not fully contain another, and we have no particular reason to violate this condition.
This commit is contained in:
@@ -1204,17 +1204,6 @@ void process() {
|
|||||||
protoPalettes[n] = protoPalette; // Override them
|
protoPalettes[n] = protoPalette; // Override them
|
||||||
// Remove any other proto-palettes that we encompass
|
// Remove any other proto-palettes that we encompass
|
||||||
// (Example [(0, 1), (0, 2)], inserting (0, 1, 2))
|
// (Example [(0, 1), (0, 2)], inserting (0, 1, 2))
|
||||||
//
|
|
||||||
// The following code does its job, except that references to the removed
|
|
||||||
// proto-palettes are not updated, causing issues.
|
|
||||||
// TODO: overlap might not be detrimental to the packing algorithm.
|
|
||||||
// Investigation is necessary, especially if pathological cases are found.
|
|
||||||
//
|
|
||||||
// for (size_t i = protoPalettes.size(); --i != n;) {
|
|
||||||
// if (protoPalette.compare(protoPalettes[i]) == ProtoPalette::WE_BIGGER) {
|
|
||||||
// protoPalettes.erase(protoPalettes.begin() + i);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
|
|
||||||
case ProtoPalette::THEY_BIGGER:
|
case ProtoPalette::THEY_BIGGER:
|
||||||
|
|||||||
Reference in New Issue
Block a user