r/GraphicsProgramming • • Aug 23 '26

Flickering issue

I'm using opengl 3.3 and C on a Nvidia gtx 1050 and I keep getting this flickering issue... does anyone know the cause...

Will appreciate your thoughts..

46 Upvotes

22 comments sorted by

View all comments

Show parent comment

5

u/_Bethel__ Aug 23 '26

I think z fighting would flicker when the camera is moving, on a static camera the polygons will settle on who wins the top z spot

4

u/fgennari Aug 23 '26

It's not Z-fighting. It looks like some of the triangles are occasionally missing and the object under them shows through. It's some type of race condition or use of uninitialized/garbage data that sometimes happens to be valid. You can either use a debugger like RenderDoc as others suggested, or share your code.