Hello,
it has something to do with memory in use. I just noticed that whenever (Hollywood or AMIGA OS3.1) frees some memory the program execution slows down (from average 8 seconds to 12 or even 20 seconds sometimes).
At first I was looking for some mistakes in my script but then I noticed memory amount on the workbench's menu and I'm almost 100% sure that must be the problem.
The program is just an infinite loop (for testing), after every loop it prints out the time how long the calculations took time.
EVERY first run is always the fastest (~8seconds), each other is much slower (~13 seconds or even more, sometime less).
When the program starts I can see that free memory is going down - the loop is finished and the execution time is fine. When the program runs another loop I can see that free memory is going down again but sometimes it stops (not changing) and thet it jumps up (shows more free memory that before) - when that happens my program slows down.
How to avoid this? Or How can I force to free memory when the program is iddle - I tried Garbage collector but no luck.
Thanks.