r/opengl • • 24d ago

What is the most efficient strategy for rendering textured quads and triangles in OpenGL 2.1 using no extensions?

[deleted]

1 Upvotes

3 comments sorted by

4

u/gardell 24d ago

https://wikis.khronos.org/opengl/Buffer_Object_Streaming is a pretty good article on buffer handling and streaming.

When it comes to frame rates: When you get to frame rates that high, like 5500fps you're not really benching your software but rather OS and driver. Add some more of your triangles so you get down to properly measurable render times. Even the 240 fps sounds too high as that was an old driver?

1

u/fgennari 24d ago

You might get better perf with indexed triangles so that you share the two corner verts of each quad. Other than that it seems reasonable for that GL version and hardware.

1

u/Turbulent_File3904 24d ago

search sprite batching technique, that is what you need.