Hi any SDL2 Guru out there,
I am currently trying to make a “brick breaker” game that i learnt in udemy and converting it to be more object oriented for my capstone C++ project on Udacity. As i have finished the game, i noticed that i kept facing the problem whereby the render keep flickering. I went to see many other post out there about flickering and i tried to implement the solution that was suggested such as using double buffer “Renderclear→Rendercopy→ Renderpresent” but to no avail i couldn't find the problem causing it. I tried on two different PCs and i realized the flicker happen randomly and the rate of flickering is different from different PCs. I am wondering if there is any experts / guru could lend a help to look through my game, i appreciate if they could point me to some direction on what is causing it?
Attached link is to my github where i have commit my code, pardon me for any beginner mistakes as i am trying to learn C++ and SDL.
https://github.com/WinRobotics/udacity-CppND-Capstone-BrickBreaker