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 functionCodePudding user response: