{"id":396,"date":"2010-04-09T22:01:08","date_gmt":"2010-04-10T06:01:08","guid":{"rendered":"http:\/\/www.lostvectors.com\/blog\/?p=396"},"modified":"2010-10-11T12:09:16","modified_gmt":"2010-10-11T20:09:16","slug":"tell-me-where-it-hurts-part-3-security-checkpoints","status":"publish","type":"post","link":"https:\/\/www.lostvectors.com\/blog\/2010\/04\/09\/tell-me-where-it-hurts-part-3-security-checkpoints\/","title":{"rendered":"Tell Me Where It Hurts Part 3: Security Checkpoints"},"content":{"rendered":"<p>This memory testing is quite the bug hunt. I&#8217;ve been testing  between two computers and two browsers. I&#8217;ve been patting down every game object  for illegal memory stashes. Offending code blocks are stripped and searched and  sometimes even completely exterminated. Progress is being made little by little  as I debug and optimize while innocent code is made to suffer inconvenient slow performing test operations.<\/p>\n<p>It has been a tedious process but still productive. All this  debugging has reacquainted me with some old code. Some of which I haven&#8217;t seen  in months. It&#8217;s been nice getting back in touch. \ud83d\ude09<\/p>\n<p>I still haven&#8217;t found that magic one-line-of-code that if  fixed would solve all my problems&#8230; <\/p>\n<p><div class=\"codecolorer-container actionscript default\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/><\/div><\/td><td><div class=\"actionscript codecolorer\"><span class=\"co1\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><br \/>\n<span class=\"co1\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ PAIN IN BEHIND BEGIN \/\/\/\/\/\/\/\/\/\/\/<\/span><br \/>\n<span class=\"co1\">\/\/ set to false before testing<\/span><br \/>\n<span class=\"kw3\">public<\/span> <span class=\"kw3\">static<\/span> <span class=\"kw2\">var<\/span> GAME_BUGGED:<span class=\"kw3\">Boolean<\/span> = <span class=\"kw2\">true<\/span>;<br \/>\n<span class=\"co1\">\/\/ set to 0 before posting<\/span><br \/>\n<span class=\"kw3\">public<\/span> <span class=\"kw3\">static<\/span> <span class=\"kw2\">var<\/span> MEMORY_LEAK_RATE_KBS:<span class=\"kw3\">int<\/span> = <span class=\"nu0\">1024<\/span>;<br \/>\n<span class=\"co1\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ PAIN IN BEHIND END \/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><br \/>\n<span class=\"co1\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<\/p>\n<p>9:45 PST &#8211; I finished coloring and formatting this series of devlog posts. That part about me &quot;taking a break&quot; mentioned above turned out to be an hour of devlog mayhem. The real break starts now.<\/p>\n<p>9:46 PST &#8211; Okay, I&#8217;ll break for reals in a second but I think I just plugged another memory leak&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lostvectors.com\/img\/2010_04_09_mem_test.jpg\" alt=\"mem_test\" width=\"486\" height=\"303\"><\/p>\n<p>I&#8217;ve been having trouble with the pikemen so I have them  fight to the death for my amusement. Actually, I don&#8217;t even watch the battle. I  just work on other stuff and wait for my computer to come to a screeching halt  due to flash consuming all of my resources. At the end of this night I looked  over and saw that they were still duking it out AND my ram was still not  completely ravaged. As you can see, there has been 323 level changes (levels  last just a few seconds) and still no problems! Yay. I&#8217;ve decided to tell you  this because I want to completely jinx my code. Or do I? Take that Karma. Or  don&#8217;t not take it not. See if I do not don&#8217;t care not so much so not&#8230;  Everyone stay real quiet&#8230; &#8230; &#8230; okay I think the it&#8217;s safe now. I need  food.<\/p>\n<p>10:00 PST (-8 GMT) Posting&#8230;devlog<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This memory testing is quite the bug hunt. I&#8217;ve been testing  between two computers and two browsers. I&#8217;ve been patting down every game object  for illegal memory stashes. Offending code blocks are stripped and searched and  sometimes even completely exterminated. Progress is being made little by little  as I debug and optimize while innocent code is made to suffer inconvenient slow performing test operations.<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/www.lostvectors.com\/blog\/2010\/04\/09\/tell-me-where-it-hurts-part-3-security-checkpoints\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-devlog"],"_links":{"self":[{"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/comments?post=396"}],"version-history":[{"count":6,"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/posts\/396\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/media?parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/categories?post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lostvectors.com\/blog\/wp-json\/wp\/v2\/tags?post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}