Okay now this is VERY weird.
In my current project I recently had an unexplained drop in my fps times. Since in most cases the program doesn't have to do a lot of time consuming stuff I am usually in the range of 3000+ fps. (True, not only by screen fps() but also confirmed by FRAPS). This is mostly due to the fact that less then 5 images need to be drawn per frame if I am doing nothing and I test my codes at SYNC RATE 0 to see if anything suddenly kills my frame rates.
Recently it dropped from those 3000+ to 500-600 fps.
Since most screens don't require a lot of speed I didn't realize the drop in my framerate at first, especially since I wasn't doing anything speed relevant so I can't recall just what I did that could have affected them so badly.
So I started timing my program routines to find out what is eating up my time. I use:
do
t1 = Timer()
`all main loop calls
t1t = t1t + Timer()-t1
loop
and a similar construct around smaller parts of the program with t2(t). When I save the values at the end I can see how much time my program has spent in total in the main loop and how much on the routine I stopped with t2t.
After some attempts to find the evil doer I had this result:
"113277 ms wasted on T1, 108660 on T2"
108 seconds of 113 total running time consumed by a small set of code lines, there's got to be some sort of bug in these lines.
Now the first weird thing is that this particular part of the program hasn't been changed "in ages".
I actually narrowed it down to ONE command. ONE of a whole lot of commands called each frame. ONE command in 7000 lines of code, that uses 95% of the time in my main loop. ONE command I had at that place for months now. This is no joke, when I turn that command into a remark my fps jumps from 500-600 back to 3000+.
This is what's eating the time, including the timing commands:
t2 = Timer()
Set Text To Normal
t2t = t2t + Timer()-t2
So I'll just stick to my inital thought aka topic subject: WTH?
Any thoughts?