Noticable lag in a simple OpenGL program with mouse input through GLFW
问题 Here's a simple program that draws a triangle following the mouse cursor's position. What I (and hopefully you) can notice, is that the triangle lags behind the cursor, it's not as tight as when dragging around even a whole window. So my question is: What am I doing wrong? What leads to this lag? One thing I realize is that it would suffice to shift the actual pixel values of the triangle, and not rasterize it again and again. But is rasterizing this one triangle really that expensive? I also