Home > other >  Opengl (directx) image tore his question
Opengl (directx) image tore his question

Time:09-23

Problem description:
Now I want to change a revolve around the circle line, line scan a week for 10 seconds, in the process of I realize found a tear line phenomenon, and then I will open video card vertical frame synchronization, no tear phenomenon, but this time, the gpu occupancy rate rose to 100%, I use the ATI v5900 graphics;

Then I, in a way, don't open the video card of vertical frame synchronization, and then in the program using ddraw WaitForVerticalBlank function waiting for the start of the frame, and then call swapbuffers function exchange; At this moment is when the scan lines running in the upper area of the display, or a tearing phenomenon, the second half of the area without this phenomenon;

Does anyone know what the problem is, in addition to ask you, do you have any similar WaitForVerticalBlank function in opengl, I see a function in the opengl glWaitSync, don't know whether I achieve this function, ever know, consult!

CodePudding user response:

Their top, anyone know?

CodePudding user response:

There is requestAnimationFrame webgl to call to redraw, redrawn scan lines, don't know if webgl inside have corresponding function

CodePudding user response:

refer to the second floor iquwming response:
there is a requestAnimationFrame webgl to invoke redrawn constantly, to draw the line, don't know if webgl inside have corresponding function


Opengl I didn't find the similar function

CodePudding user response:

Seems to tear at 0, 90, 180, 270 no tear, anti-aliasing did not? The sampling
  • Related