🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Advertisement

Latest flickering Activity

I'm no SDL guru but I see a problem in your update (except for that it should be handleEvents and not HandlerEvents). You don't poll for all events but only for 1 and so there might be events in the background which involve those flickering. The usual game loop looks like this

while(run)
{
    while…
4,738 views
Advertisement

You can use those, but then you have to call ValidateRect manually.

10,577 views
Advertisement
Advertisement