{"id":1141,"date":"2017-10-14T14:58:04","date_gmt":"2017-10-14T17:58:04","guid":{"rendered":"http:\/\/rockbot.upperland.net\/?p=1141"},"modified":"2017-10-14T14:58:04","modified_gmt":"2017-10-14T17:58:04","slug":"performance-de-baixo-para-cima","status":"publish","type":"post","link":"https:\/\/rockbot.upperland.net\/?p=1141&lang=pt","title":{"rendered":"Performance, de baixo para cima"},"content":{"rendered":"<p>To preserve memory and performance, I&#8217;ve been cutting several features from Rockbot, such as having two independante backgrounds with parallax.Even so, I could not assure that the device that is running the game could reach 60 frames per second in a constant way. So, looking how PS4 games are now adding setting much like the PC games, for user picking between performance or graphic quality, I&#8217;ve come with a new setting:<\/p>\n<p><a href=\"http:\/\/rockbot.upperland.net\/?attachment_id=1084\" rel=\"attachment wp-att-1084\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1084\" src=\"http:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-512x401.png\" alt=\"\" width=\"512\" height=\"401\" srcset=\"https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-512x401.png 512w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-256x201.png 256w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-150x118.png 150w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-250x196.png 250w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-550x431.png 550w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-230x180.png 230w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-383x300.png 383w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1-638x500.png 638w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_1.png 644w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rockbot.upperland.net\/?attachment_id=1085\" rel=\"attachment wp-att-1085\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1085\" src=\"http:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-512x401.png\" alt=\"\" width=\"512\" height=\"401\" srcset=\"https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-512x401.png 512w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-256x201.png 256w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-150x118.png 150w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-250x196.png 250w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-550x431.png 550w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-230x180.png 230w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-383x300.png 383w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2-638x500.png 638w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/performance_config_2.png 644w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>With this config, the ame will try to adjust as better as possible to run well, if using the low-end option, or with extra effects, using the high-end.<\/p>\n<p>Remember I&#8217;ve said I removed the second background layer? Well, with high-end graphics mode, I will get it back, but as a foreground; and it even includes a setting for transparency!<\/p>\n<p><a href=\"http:\/\/rockbot.upperland.net\/?attachment_id=1086\" rel=\"attachment wp-att-1086\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1086\" src=\"http:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-512x401.png\" alt=\"\" width=\"512\" height=\"401\" srcset=\"https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-512x401.png 512w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-256x201.png 256w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-150x118.png 150w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-250x196.png 250w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-550x431.png 550w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-230x180.png 230w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-383x300.png 383w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer-638x500.png 638w, https:\/\/rockbot.upperland.net\/wp-content\/uploads\/2017\/01\/foreground_layer.png 644w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Other feature\u00a0I plan to add in high-end graphics mode is adding a blue transparent layer over water, and more should follow.<\/p>\n<p>Now, i you have an slow device like the PSP, you can pick the low-end graphics mode that will adjust the game to run in 30 frames per second instead of 60, making physics and collision detection a bit worse, but assuring game does not run slower than it should.<\/p>\n<p>There are still a long road until Rockbot 2 final version, stay tunned!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To preserve memory and performance, I&#8217;ve been cutting several features from Rockbot, such as having two independante backgrounds with parallax.Even so, I could not assure that the device that is running the game could reach [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[26],"tags":[],"class_list":["post-1141","post","type-post","status-publish","format-standard","hentry","category-uncategorized-pt"],"_links":{"self":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts\/1141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1141"}],"version-history":[{"count":1,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts\/1141\/revisions"}],"predecessor-version":[{"id":1142,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts\/1141\/revisions\/1142"}],"wp:attachment":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}