Slow down question
BlitzMax Forums/BlitzMax Beginners Area/Slow down question| 
 | ||
| My program has begun to get slower, just by running.  It drops from 60fps to around 40 fps in 50 seconds of running.  I cant think of any serious operations i've added to it, and I cant place exactly when this slowdown happened.  One thing I did, was switch what was a 400 item array over to a TList, which gets this done to it alot (but not more than the array did) for i:foodpellet = eachIn foodlist 'stuff next any ideas as to whether that slows me down, or what else might be causing a fairly consistent slowdown over time? foodlist is staying about the same size as I run, but for some reason, the longer it runs the slower it gets. | 
| 
 | ||
| Are you calling FLUSHMEM before you flip in your main game loop? | 
| 
 | ||
| no what is the call to make? just flushmem()? And what does it do? (sorry, i have no training in programming beyond a highschool class 2 years ago, this is probably obvious) Edit - Done, thanks, fixed everything! I was afraid it was gonna be something like "Tlists ruin everything" and then I would have to rewrite like 200 lines. Such a simple solution, thanks alot. |