{"id":16900,"date":"2012-08-08T03:38:34","date_gmt":"2012-08-08T08:38:34","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=16900"},"modified":"2012-08-08T11:02:56","modified_gmt":"2012-08-08T16:02:56","slug":"john-carmack-2012-keynote-annotatedpart-2","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=16900","title":{"rendered":"John Carmack 2012 Keynote Annotated:<\/br>Part 2"},"content":{"rendered":"<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/splash_quakecon2012.jpg' class='insetimage'   alt='splash_quakecon2012.jpg' title='splash_quakecon2012.jpg'\/><\/td><\/tr><\/table><\/p>\n<p>You know the drill by this point. <a href=\"http:\/\/www.youtube.com\/watch?v=wt-iVFxgFWk&#038;\" title=\"YouTube - QuakeCon 2012 - John Carmack Keynote\">Here is the full presentation<\/a> at Quakecon 2012. My comments with timestamps follow. Note that I&#8217;m just watching the video, pausing to comment at points that I think are interesting or could use some clarification for the masses. <\/p>\n<h3><a href=\"http:\/\/www.youtube.com\/watch?v=wt-iVFxgFWk#t=8m05s\">8:05: &#8220;Doom 3 still holds up.&#8221;<\/a><\/h3>\n<p>YES.<\/p>\n<p>I&#8217;ve <a href=\"?p=1861\" title=\"The Golden Age of PC Gaming\">said before<\/a> that this era was pretty much a turning point in graphics technology. Doom 3, Half-Life 2, World of Warcraft, Thief: Deadly Shadows<sup>*<\/sup>, and Far Cry. We can argue a bit about the true high point. Maybe you want to move it back to 2002 so you can include <a href=\"http:\/\/en.wikipedia.org\/wiki\/No_One_Lives_Forever_2:_A_Spy_in_H.A.R.M.'s_Way\" title=\"No One Lives Forever 2 - Wikipedia\">NOLF 2<\/a>. Maybe you want to move it forward a year or two to include the likes of Half Life 2: Episode One, or Quake 4, or whatever. But the point stands that right here we hit a magical spot on the visuals vs. cost trade-off. Games could still be produced in two-year intervals, and they had just enough graphics that characters could emote. But they hadn&#8217;t yet dropped into the uncanny valley of photorealism or become so expensive that nothing short of mega-blockbusters could hope to turn a profit. <\/p>\n<p><!--more-->The graphical gains since this time have been so modest, and we&#8217;ve given up so much to get them. <\/p>\n<p><small><sup>*<\/sup> I&#8217;m commenting on the graphics here, not the gameplay. Also, Thief Deadly Shadows gets a demerit for it&#8217;s not-ready-for-primetime ragdoll physics, which turned the town guards into hilarious contortionists upon death. Also the tiny levels were inexcusable given the genre. Maybe I&#8217;m undercutting my argument a bit here, but the point is: With regards to screenshots, the game holds up really well. <\/small><\/p>\n<h3><a href=\"http:\/\/www.youtube.com\/watch?v=wt-iVFxgFWk#t=11m00s\">11:00: &#8220;The interfaces were reasonably constant.&#8221;<\/a><\/h3>\n<p>He&#8217;s talking about their ongoing project to re-release Doom 3 with some graphical updates, some new levels, and support for VR headsets. In the process of updating the 2004 Doom code, they found themselves pulling bits of id Tech 5 (the name of the engine that drives RAGE) code and using that. When he mentions interfaces, he&#8217;s talking about programming interfaces.<\/p>\n<p>Let&#8217;s make a simplistic hypothetical example. Let&#8217;s say you&#8217;ve got a bit of code for working out hit detection. Say there&#8217;s a bit of code for checking to see if a given shot will hit another player. Perhaps your code for <em>Shoot Guy III<\/em> looks like this:<\/p>\n<pre lang=\"c\">\r\nEntity* HitscanDetect (Vector origin, Vector direction, float range);\r\n<\/pre>\n<p>So when the player pulls the trigger, you call this function. You pass it three values: Where the shooter is standing, what direction they&#8217;re aiming, and the maximum range of the weapon. (It&#8217;s pretty common in old games to simulate bullets that travel in a perfectly flat trajectory until they hit some limit, at which point they poof out of existence.) This function will return the entity (fancy programmer lingo for &#8220;thing that exists in the game world&#8221;) that was hit, if any. You can then use that information to take whatever action is needed. (Deal damage, subtract ammo, kill somebody, etc.) <\/p>\n<p>Maybe in a few years you&#8217;ll release <em>Shoot Guy IV<\/em>. During development, someone might re-write <code>HistscanDetect ()<\/code> to be better. Maybe it will use less CPU, or do more accurate detection. Maybe it uses less memory, or just has cleaner, more readable code. Whatever. It&#8217;s new.<\/p>\n<p>So then you do a re-release of Shoot Guy III.  You decide to take the new and better code and copy &#038; paste that sucker into your older codebase. Easy, right?<\/p>\n<p>Maybe.<\/p>\n<p>If the interface is the same, then it&#8217;s easy. But what if the interface has changed?<\/p>\n<pre lang=\"c\">\r\nEntityList* HitscanDetect (Player Shooter, Vector origin, Vector direction, class WeaponData);\r\n<\/pre>\n<p>See, in Shoot Guy IV, you added the railgun, which can pierce multiple targets. So the function now needs to return a list of everyone that was hit, not just one entity. Also, Shoot Guy IV had team-based gameplay, so you have to provide the identity of the shooter, so that it can check and handle friendly-fire issues. (The railgun can&#8217;t hit enemies hiding behind the shooter&#8217;s fellow teammates.) Shoot Guy IV also featured real bullet physics, which meant bullets traveled in a proper parabola.  So now you have to pass the hit detection thing a little bundle of information describing the weapon being used and how it behaves, so that it can do the simulation.<\/p>\n<p>The interfacehas been changed.  The values you provide are different, and the results you get back are different. It&#8217;s <em>similar<\/em>, but not the same. Now you have to think about what you&#8217;re doing. Maybe you can plug in some dummy values for Shooter and WeaponData and call it a day. Maybe if you pull in the new code you&#8217;ll need to also bring along more code to deal with the WeaponData. Hang on, the WeaponData code is linked to this math stuff for calculating parabolas. And the math stuff ties in with the newer networking code for dealing with latency in an online game. And that code uses a couple of tiny bits of our newer, more secure networking stuff and the anti-cheat code that goes with it. <\/p>\n<p>What you&#8217;ve done is tugged in a loose bit of Christmas lights and found yourself holding an immense knot of interconnected stuff. You&#8217;re not even sure where you should make the cuts between new and old. This was supposed to be a simple copy &#038; paste job and you just dumped six hours into this and you&#8217;re still finding new knots. <em>You&#8217;re not even sure how big the problem is at this point, much less how long it will take to untangle.<\/em><\/p>\n<h3><a href=\"http:\/\/www.youtube.com\/watch?v=wt-iVFxgFWk#t=12m25s\">12:25: Scheduling development resources<\/a><\/h3>\n<p>This probably adds quite a bit to the cost of making games, and becomes more exacerbated as the process of making games is handled by more specialists.  <\/p>\n<p>In the old days you had programmers and artists. (Or, in the super-old days, your programmers also made the art. This was probably not ideal, but that&#8217;s the way it had to be.) Your artists kind of made levels, textures, and character sprites. Maybe Alan was better at some tasks and Barb was better at others, but the stuff was simple enough that everyone could stay busy.<\/p>\n<p>Now it&#8217;s all specialists. Two different artists will have entirely different jobs, using different tools, on types of machines, to produce art that is needed at different points in the development. Alan can&#8217;t just start making character animations and Barb isn&#8217;t in the loop enough to contribute to making texture maps. So what happens when you&#8217;re a month from going gold? You need lots more polish on your texture maps, but you&#8217;ve got all the character animations done and nobody wants to mess with them for fear of breaking something.<\/p>\n<p>What do you do? Force Barb to take her vacation here in October? I&#8217;m sure she&#8217;ll love that. Fire her and re-hire for the job in a few months? (If your dev team is owned by EA or Activision, maybe yeah.) Jam her into a job she&#8217;s not trained for and let her make low-grade assets?<\/p>\n<p>Building a game is like building a house. You don&#8217;t need the roofers until the end and you only need the bulldozer at the beginning. House-builders use contractors to manage this sort of thing, which isn&#8217;t nearly as applicable to game development. <\/p>\n<p>Keeping everyone busy and doing meaningful work is a major challenge. It&#8217;s yet another reason that games have gotten so expensive.<\/p>\n<p>It&#8217;s also part of the reason behind day-1 DLC. (Not that I&#8217;m super-happy about the practice, but I understand the appeal it has to the bean counters who are looking at the idle artists at the end of a project and wondering how they can be made useful.)<\/p>\n<h3><a href=\"http:\/\/www.youtube.com\/watch?v=wt-iVFxgFWk#t=13m25s\">13:25: &#8220;Doom 4 is being done in &#8216;Bethesda Mode&#8217;.&#8221;<\/a><\/h3>\n<p>Carmack said this meaning, &#8220;We&#8217;re in media blackout mode&#8221;, but I couldn&#8217;t help hearing this as, &#8220;The game will be riddled with hilarious and crippling bugs at every turn.&#8221;<\/p>\n<p>Still, this is part of the cost of <a href=\"http:\/\/www.escapistmagazine.com\/news\/view\/92641-ZeniMax-Media-Acquires-id-Software-UPDATED\" title=\"ZeniMax Media Acquires id Software - The Escapist\">giving up their independence<\/a>. They no longer get to talk about their own games until the folks at Zenimax say so. Alas.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You know the drill by this point. Here is the full presentation at Quakecon 2012. My comments with timestamps follow. Note that I&#8217;m just watching the video, pausing to comment at points that I think are interesting or could use some clarification for the masses. 8:05: &#8220;Doom 3 still holds up.&#8221; YES. I&#8217;ve said before [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[248,43,215,214],"class_list":["post-16900","post","type-post","status-publish","format-standard","hentry","category-videogames","tag-carmack","tag-doom","tag-id","tag-rage"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/16900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16900"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/16900\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}