The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
Flickering in SDL 2.0 OpenGL when rendering full screen
Ladar
Joined: 17 Aug 2015
Posts: 1
Posted: Mon Aug 17, 2015 6:14 pm
So I've got a loop and all it does is clear the OpenGL buffer to White and that's it. If I do this fullscreen on several computers the screen will Flash Black. It looks like it's dropping frames or something. If it is Windowed it is fine, and if I define the resolution of the full screen window it's... for lack of a better word less likely to look like it's dropping frames. I think it's a syncing issue. Can anyone provide help to diagnose the issue. Code is below.
int CApp::OnExecute() {
if (OnInit() == false) {
return -1;
}
SDL_Event Event;
while (Running) {
while (SDL_PollEvent(&Event)) {
OnEvent(&Event);
}