Optimization....

Blitz3D Forums/Blitz3D Programming/Optimization....

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In order not to perceive the slowdown so much, you would have to do it in "chunks" iterating manually through the list.

; do in loop for certain amount of time
t.typ = after t
update t
; update world or something -- do other game stuff, and then return to above

If you NEED to update all the types during each frame, you may be in trouble, and you may wish to re-visit your design. (You may wish to re-visit your design anyway...)