This was referenced in a HN article that I read in the past day. I checked out reviews and it seems like it's a bit dated. Many chapters are done in assembler, for example. Any recommendations on great books that cover OpenGL and game programming?
While I agree it's dated in lot of ways but it is still a great read. I am not a game dev but I love to write performant code, it's just a personal satisfaction when I know my code is making the best use of the hardware. I think you should read the first chapter at least, on how he approaches code optimization, first by design and then by code. This book teaches you to think like a performance programmer like no othe…
John Carmack, for example, didn't write much of his games in assembler because he knew that he didn't have to. If you look at Doom, there wasn't a lot of assembler even back in the early 1990's.
https://github.com/id-Software/DOOM
And according to Carmack, he liked working in C and OpenGL.
http://rmitz.org/carmack.on.opengl.html
"With OpenGL, you can get something working with simple, straightforward code, then if it is warranted, you can convert to display lists or vertex arrays for max performance (although the difference usually isn't that large). This is the right way of doing things -- like converting your crucial functions to assembly language after doing all your development in C."
I actually have done some basic assembler so I do understatnd the benefits of keeping values in registers, etc. A lot of stuff really is architecture dependent, of course. ARM vs x86 will make a difference.
Anyway, where's the best place to start these days? Personally, I'd like to do some iOS stuff, and perhaps keep the same code running on Android.