i'm just using SDL_Delay()MarauderIIC wrote:Nothing jumps out as a problem. How are you telling how many frames happen per second? Maybe that's where the problem is.
It's all handled in the first snippet i posted
pretty much
i'm just using SDL_Delay()MarauderIIC wrote:Nothing jumps out as a problem. How are you telling how many frames happen per second? Maybe that's where the problem is.
Code: Select all
if ((time/frame) < (1000/FPS))
{
SDL_Delay((1000/FPS) - (time/frame));
}
http://thechaosrift.com/viewtopic.php?f ... d3842fd6f2dandymcgee wrote:What a useless post. Why don't you ask for help instead of aimlessly complaining about a problem you don't even attempt to describe?
That's what I thought at first but it gives me a too many initizlizations error so i guess notPanama wrote:I believe it should be
Code: Select all
SDL_Color textColor (255, 255, 255);