Hey GameDev!
For some time now, my brother and I have been working on a game in C++ using SDL2 and OpenGL 2.1 (which is widely supported with both the Linux and Windows OS). We started porting our game to Windows recently (usually we work on Linux), and right from the start using a simple example we experienced a strange stuttering. We are using Mingw to do so and use the libwinpthread library, which resemples the Linux threads best.
I use the word strange because it stutters when starting the application with nothing running in the background. However when we start the application with a graphics application in the background: for instance a movie played by VLC , or youtube, the application works flawless! We have searched the internet for possible fixes, but most are not applicable to our problem, because it is a rather specific behavior.. We have however tried to change the priority of the app to real-time, but without success.
The simple testapp can be found in the attachment of this post, so if you'd like you can test it for yourselves. We really hope that someone with better understanding of graphics in Windows can help us solving this mystery!
Have a great day!
Erik
The Netherlands