Well, I have loops running for the alpha and color of the GUI panels, as well as for the color of the background.
and for the GUI themes (while (_mode== n)).
I think I may have answered my own question. I'll see what I can do to optimize my code.
Thanks for the tip!

One thing, though: How would you use the debug panel to fund out how many loops are running?
EDIT: ok, I went through it, removed some of the superfluous while-loops (like the ones controlling the GUI themes), replaced some of the while(1) with while(mouse_left== on), and it seems to run at 75 FPS longer. But after a while, the FPS still drops to 60. I can't change how the program deals with the background color, because that has to be able to change dynamically. Same with the GUI color, I had to leave it as a while because then it wouldn't be able to be interchangeable with the GUI themes.
I don't know if there's anything else I can do about the FPS. If I can, please post about it (unless I figure it out first, then
I'll post,

).