[Bf-committers] Layer system

Timothy Baldridge tbaldridge at gmail.com
Fri Dec 21 15:45:15 CET 2007


Actually linked list would probably be the best way, as objects that
do not exist on the layer being rendered wouldn't even need to be
iterated over. This would most likely be the fastest method since
there are no comparisons and hence no branches (except at the end of
the for loop). So we have

for (lstelm = lststart; listelm = listelm->next; listelm != NULL) {
      drawobj(listelm->obj);

}

Timothy

-- 
If you put tomfoolery into a computer, nothing comes out but
tomfoolery. But this tomfoolery, having passed through a very
expensive machine, is somehow ennobled and no one dares criticize it.
(Pierre Gallois)


More information about the Bf-committers mailing list