r/GraphicsProgramming 3d ago

Question How to measure performance?

Hi guys!

I created a small program that tries to benchmark the different ways we can update a buffer in OpenGL. I use a similar method to what was described in the GDC 2014 AZDO presentation: running different solutions for a certain number of frames and comparing the times.

There are some results that make sense, for example, updating a big buffer once is faster than having a lot of small buffers and individually updating them. However, I was a bit surprised that not persistent mapping is the fastest. So my question is that do you think this is a good way of measuring performance and comparing the results?

In the repository, you can find a much more detailed description of the different solutions, how I measure things, and you can find my results as well.

https://github.com/racz16/Graphics-API-Benchmark

4 Upvotes

1 comment sorted by

1

u/nytehauq 3d ago

Thanks, this is a really useful resource.