Ug. I'm sorry about this, but this morning after getting home from work, I
posted stuff on the event list posted by Jeremy I believe it was, and I
don't think it sent... if it did, my bad ;). I can't remember your exact
code at all (After 12 hour shifts, the memory goes down the toilet). But, I
remember you had two for loops in your update function. If yours is called
as often as mine (Every cycle) that can much up some serious CPU if your
lists are large enough. I'd say switch to a doubly linked list (->next
->prev), or right before the "event->delay-- <= 0" do the check to see if
its to be killed, if it is, even_last->next = event->next, etc. You know the
drill. But that should cut down on the CPU usage alittle and it eliminates
that redundant for loop. I hope this helps.
Davion
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca