Hi, I’m making a simple ray tracer for a project and am trying to figure out the most efficient way to draw to every pixel on the screen. I’m currently using a 500x500 window and even before the ray tracing, just drawing black to every pixel using glBegin(GL_POINTS) is bringing the FPS down to about 5. Is there a better way that lets me specify the color for every pixel?
If all you’re using OpenGL to do is draw points you calculate on the CPU to the screen, there are far better ways to do that. Pretty much any GUI API will have faster ways of getting that done.
Beware, this metric is misleading.
It could mean you went from 1 fps to 2 fps which is a great improvement (500ms spared).
It could mean you went from 200 to 201 which is totally insignificant (0.03 milliseconds difference).
mmm ok, thanks for everything guys, it appears I’m just a tard. I was running the project in debug mode, once I switched to release the fps shot up to about 1600.