DisasterCoder
DisasterCoder

Reputation: 577

Does the size of objects drawn by openGL affect the performance?

When I draw stuff with OpenGL, I wanted to know how the size reflects upon the performance. Does it get slower the bigger the numbers get? I would think yes but I do not really know.

For example, when I tell OpenGL to draw something from -1 to 1 would it take more time to draw something from -10 to 10 or doesn't it matter that much?

Upvotes: 1

Views: 255

Answers (1)

BDL
BDL

Reputation: 22157

The size of an object itself, meaning the coordinates it has, have no impact on the performance. What matters is the size the object has on screen. When an object covers a larger number of pixels, then the fragment shader has to be executed more often and more pixels have to be written to the buffer.

Upvotes: 6

Related Questions