I have compiled and executed http://lazyfoo.net/tutorials/OpenGL/06_loading_a_texture/index.php
This code essentially loads a '.png' file and displays it on the screen.
I modified it to then start scrolling the png from the top left to the bottom right (same as in the sample program on github) and the problem occurs in FreeGlut too........
This is awful. It is the EXACT same problem, so I know it can't be the SDL code. This leaves the OpenGL code or a driver issue from hell.
One thing that makes no sense though, is that I have compiled and run the source code from the game Gish. https://github.com/blinry/gish
This runs smoothly on my screen and it uses SDL 1.2 and OpenGL.
And just to re-emphasize, this problem occurs on Windows and Linux on two laptops with different intel drivers and on a desktop with intel cpu and an AMD video card.
Can anybody confirm that the code posted to github also stutters? (if you do install sdl2 from the apt-get , the sdl2_ttf is not there, you can just remove the linking from the sconstruct as it is not used in the example anyway). The below should be all you need to install
sudo apt-get install libsdl2-dev sudo apt-get install libsdl2-image-dev
If you are unfamiliar with scons, all you need to do is call "scons" in the root of the directory (same spot as the sconstruct), same as you would "make"
If this same code does not stutter on anybody else's machine then I am in awe of this problem.
Thank you very much for everybody's continuing help. If anybody can solve this, it's the gamedev community.