Quote:
Originally posted by Kaimetsu
Here's a different idea: Negate the layer index to remove y-order sorting. So changeimgvis i,-2; is like layer 2 but without y-order sorting.
|
That would result into layer 2 being filled with sorted and non-sorted images...
NPC Code:
changeimgvis 200,2;
changeimgvis 201,-2;
how do you want to sort this?
Quote:
Insertion sort is horribly slow when using any large amount of elements.
|
If you say so...it would just take log2(numelements) compares...of course you can't use it on arrays, because then you'd have to move all the following elements...I thought of pointer lists. I don't know how images are stored in graal.