Wired line effect (screen tearing?)


#1

Hi,
i made a small program that draws a rotating line. The problem is that when i set the rotation speed to a high value i see this effect:

EDIT: Apparently you cant see the effect when i take a screenshot - but it looks like it is drawing multiple lines like this: https://i.ibb.co/0KqHskN/imageedit-2-9422376044.png

I initially thought it had something to do with screen tearing and so i tried calling glfwSwapInterval(1) to enable vsync but that doesn’t fix it.

Does anybody know why this is occurring? and how to fix it?


#2

If you can’t see the effect when you take a screenshot, but you can see it in the video, it’s possible what you are seeing is just due to the monitor pixel response time.

If you take a video with something which can record lossless video such as FRAPS you should be able to look at each frame and check.