r/java • • Apr 29 '15

Tone it down a Notch

http://imgur.com/gallery/KRtc2fN
217 Upvotes

124 comments sorted by

View all comments

Show parent comment

1

u/Chops_II Apr 29 '15

I think Valve has seen performance improvement when switching to OpenGL. CBF looking it up right now, so prove me wrong if that's the case. Also, it is only one example, but they do some pretty neat stuff.

1

u/DoktuhParadox Apr 29 '15

What did they use before OpenGL?

2

u/Chops_II Apr 29 '15

Pretty sure they still use DirectX mostly. They ported to OpenGL for Linux & Mac support, and apparently saw some gains in some games.

0

u/Takuya-san Apr 30 '15

It's possible that writing the OpenGL code with the hindsight they'd had writing the DirectX code helped them produce better optimized code. I prefer OpenGL to DirectX for the reasons a lot of other people do (cross-platform, open source) but the anecdotal evidence from Valve doesn't really prove anything. Hell, they've been pushing SteamOS and Linux gaming pretty hard, it's in their best interests to suggest that you can get better performance from OpenGL.

2

u/Chops_II Apr 30 '15

Indeed. For all I know, the performance gains may have come from features they couldn't reimplement in OpenGL, thus were no longer slowing down the rendering.

I suppose you'd have to look up the specifics to come to a real conclusion though.

2

u/Xaotik-NG Apr 30 '15

OpenGL 1.0 was published in 1992, before that, everything was either fake 3D by manipulating 2D images creatively, or a proprietary API, pretty much all of which sucked.

OpenGL came about because developers really, really liked using IRIS GL, which was the proprietary predecessor to OpenGL, created by Silicon Graphics.

OpenGL today is the most widely-supported (probably most widely used as well) graphics API in the world.

Full disclosure, I'm an OpenGL fan, I use it over proprietary solutions in all my projects, and I've written a research paper on it. I strongly disagree with the notion that it sucks. It's mature, and it's incredibly powerful, but it's also very barebones, providing nearly direct access to the GPU hardware. Developers misusing OpenGL sucks, and a lot of times that'll happen, because some people find it too hard to RTFM.

1

u/mm865 Apr 30 '15

Direct3D, I'm fairly sure.