Hello,
This one function call, PruneFreeList(), seems to be slowing down the entire MaxRectsBinPack routine, as it's called after every insert. From what I understand, PruneFreeList() runs a containment test on a list of free rectangles. If one rect is inside another, it's erased from the list.
Is there a better way to find all possible containments, and then delete them?
Thanks.
Hello,
This one function call, PruneFreeList(), seems to be slowing down the entire MaxRectsBinPack routine, as it's called after every insert. From what I understand, PruneFreeList() runs a containment test on a list of free rectangles. If one rect is inside another, it's erased from the list.
Is there a better way to find all possible containments, and then delete them?
Thanks.