{"id":674,"date":"2021-11-09T18:00:00","date_gmt":"2021-11-09T23:00:00","guid":{"rendered":"http:\/\/serioustangents.com\/SeriousBlog\/?p=674"},"modified":"2022-03-22T18:08:05","modified_gmt":"2022-03-22T22:08:05","slug":"pirate-island-the-lone-pirate-problem","status":"publish","type":"post","link":"http:\/\/serioustangents.com\/SeriousBlog\/?p=674","title":{"rendered":"Pirate Island: The Lone Pirate Problem"},"content":{"rendered":"\n<p>As an extension of fixing the issue with bad frame rates for the VR game, one of the things I\u2019m having to also deal with is the fact that the island is very devoid of other pirate figures.<\/p>\n\n\n\n<p>The paradox is that the addition of animated figures\/pirates, unless I really reuse the same figure over and over again, will result in frame rate drops, especially is multiple pirates are on the scene preforming animations or having discussions, etc.<\/p>\n\n\n\n<p>I\u2019ve tried a couple different approaches to the problem.\u00a0 For the pirate that has to actually talk, I\u2019ve been utilizing Daz Studio figures (with the purchased gaming licenses to use the figure), which has also been synchronized with Mimic-generated dialogue to explain how to pick up items and take putts on the intro screen.\u00a0 I was frankly kind of surprised at how much overhead this generated, even though I used tools to decrease how many polygons were in the figures.\u00a0 Having more than one in a scene dropped down the frame rate significantly, I\u2019m guessing due to the complexity of the figure or the size of the texture atlases that these figures carry.  But, if I leave it at one singular figure, I&#8217;m able to get ~50-60 FPS if there&#8217;s nothing else significant on the screen.<\/p>\n\n\n\n<p>Frustrating, especially given the sharpness I\u2019m seeing in redesigned games like the FF7.<\/p>\n\n\n\n<p>The main problem that now seems to be driving the framerate problem is the sheer number of different texture maps I\u2019m using in this game (from the reflective water to the various objects\/items that can be carried or viewed to the trees themselves).&nbsp; Adding in the texture maps for the pirate characters is just too much for the engine to handle and while the game will run with 5 different pirates standing around dancing a jig, the frame rate drops back down to the values that were originally there prior to me fixing the issue a couple months back.<\/p>\n\n\n\n<p>I\u2019m still puzzling out a way to get this to work.&nbsp; One idea I\u2019ve been tinkering with is to reuse the actual figure and have it teleport around based on where the player is located (performing set animations based on the current locale).&nbsp; But that\u2019s only shines a light on the problem of having the same guy appear everywhere rather than variety among the pirate characters.<\/p>\n\n\n\n<p>So for the moment, the island remains empty, except for the starter screen where the only pirate that the player will meet gives a brief tutorial is given explaining how to pick up an item or take a putt.<\/p>\n\n\n\n<p>It\u2019s not the ideal solution, but until I can find a better one, that\u2019s what I have to work with.  However, the game&#8217;s overall frame rate is -significantly- improved (50-60 with the occasional single-frame spike dropping it down to ~30 instead of the perpetual 15-30 FPS that was in place previously) so I still consider it a major win.<\/p>\n\n\n\n<p>Hope all of you are having a great week so far.&nbsp; I\u2019ll be updating again soon!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As an extension of fixing the issue with bad frame rates for the VR game, one of the things I\u2019m having to also&#8230;<\/p>\n","protected":false},"author":1,"featured_media":673,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[33,9,8,10,25],"_links":{"self":[{"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=\/wp\/v2\/posts\/674"}],"collection":[{"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=674"}],"version-history":[{"count":2,"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=\/wp\/v2\/posts\/674\/revisions"}],"predecessor-version":[{"id":676,"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=\/wp\/v2\/posts\/674\/revisions\/676"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=\/wp\/v2\/media\/673"}],"wp:attachment":[{"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=674"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/serioustangents.com\/SeriousBlog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}