opengl: glFlush() vs. glFinish()

前端 未结 8 1335
感情败类
感情败类 2020-12-02 06:40

I\'m having trouble distinguishing the practical difference between calling glFlush() and glFinish().

The docs say that glFlush()

8条回答
  •  感情败类
    2020-12-02 07:02

    The question is: do you want your code to continue running while the OpenGL commands are being executed, or only to run after your OpenGL commands has been executed.

    This can matter in cases, like over network delays, to have certain console output only after the images have been drawn or the such.

提交回复
热议问题