Thread: Y-Order
View Single Post
  #31  
Old 08-30-2002, 07:07 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
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.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote