Well, if FRAMELIMIT is 2, what happens when you feed it to limit_frames?
It is used in:
frameLimit = (1.0f/(float)fps);
So frameLimit = 1.0 / 2.0 = .5 converted to an integral type (which frameLimit is) = 0.
So, for any number greater than 1.0, frameLimit will be set to 0.
Well I'm not.quite sure if I like the looks of that, I think.I'll just change the initiation to a double... Should fix my problem right?
(although this may not be the best method of frame limiting, u am only using it for learning purposes, ie just use that while I learn about other stuff for now)