{"id":262,"date":"2007-07-25T13:51:09","date_gmt":"2007-07-25T17:51:09","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=262"},"modified":"2007-07-25T13:51:09","modified_gmt":"2007-07-25T17:51:09","slug":"another-order-of-magnitude-speed-increase","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2007\/07\/25\/another-order-of-magnitude-speed-increase\/","title":{"rendered":"Another order of magnitude speed increase"},"content":{"rendered":"<p>\t\t\t\tPeople were complaining about getting 10 FPS or so in <a HREF=\"http:\/\/www.galacticmelee.com\">Galactic Melee<\/a>, which made no sense at all.  You got like 10 ships, a background (billboard), and a carrier (large, but only one).<\/p>\n<p>So I hop into the game, and notice even on my system my usual 200 FPS has dropped to 50 FPS when there&#8217;s a lot of bullets on the screen.  Bullets are just billboards, this makes no sense at all.<\/p>\n<p>As is usually the case, anytime there&#8217;s some major &#8230;feature&#8230; like this it&#8217;s code that someone else did, and this is no exception.  Looking over the code, the programmer that did this  created a billboard set for each individual billboard.<\/p>\n<p>I create one billboard set per material, set infinite bounds, center it, and manually update the positions and orientations of each billboard.<\/p>\n<p>4X speed increase (on my system) for 15 minutes of work.<\/p>\n<p>People wonder why I do most of the code myself.  The reason is I have to do it myself one way or another.  It&#8217;s just doing it myself from the beginning saves the time and money of hiring, paying, and firing someone first.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>People were complaining about getting 10 FPS or so in Galactic Melee, which made no sense at all. You got like 10 ships, a background (billboard), and a carrier (large, but only one). So I hop into the game, and notice even on my system my usual 200 FPS has dropped to 50 FPS when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/262"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}