Advertisement

About OpenGL used in games

Started by August 24, 2018 04:05 PM
3 comments, last by CrazyCdn 6 years, 5 months ago

reading this post:

 

a doubt stay in my mind, Doom 2016 just upgraded OpenGL drivers 4.5 to 4.6, is there any differences in performance? for example, if i create a opengl context window 3.3 (im using by learnopengl tutorials) n create just a triangle rotating and i get 1000 fps... if i change the context to 4.0 (no using shaders or any 3.4~4.0 features) i'll get less fps (at least less 1 fps = 999)? the same to 4.5 to 4.6 window/game?

@edit: im talking about the usage and fps too

Game devs do not update OpenGL drivers as those are provided by IHV ex Intel, Nvidia, AMD. I'm thinking you meant to say they updated the game to support/use OpenGL 4.x features, but understand that the 2 are different.  If you are using the legacy fix function pipeline ( ie. no shaders ) I would not expect any performant increase. Also I'm not going to make any comment in regards to FPS as this is not a valid performance metric especially as a developer(  tons of post on this forum describing why this doesn't really give any real indication of perf loss/gain ). Hope that answers your ?

 

Advertisement

The OpenGL version doesn't imply that it is faster or slower, just what features are supported. If you could use those features to get better performance, then it would make it faster, but if it's the same code, then it doesn't matter.

FPS is also a horrible counter to look at.  You want to see how long it takes to render a frame.  So like Doom 2016 does everything it can to run at 16.6ms/frame.  And as for your 1fps drop, that is absolutely nothing at 1000 fps.  It's also a horrible test bench, one triangle.  Don't worry about your frame time until you have fairly complex scenes going and even then, it sounds like you're very new to graphics programming, learn the basics before you worry about performance.

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety." --Benjamin Franklin

This topic is closed to new replies.

Advertisement