{"id":186,"date":"2018-05-16T18:00:20","date_gmt":"2018-05-16T23:00:20","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=186"},"modified":"2018-05-16T21:37:10","modified_gmt":"2018-05-17T02:37:10","slug":"windowed-mode","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/05\/16\/windowed-mode\/","title":{"rendered":"Windowed mode"},"content":{"rendered":"<p>I&#8217;ve added the ability to run Lyridia in a &#8220;window.&#8221;<\/p>\n<p><a href=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2018.05.16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-187\" src=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2018.05.16-300x160.png\" alt=\"\" width=\"300\" height=\"160\" srcset=\"https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2018.05.16-300x160.png 300w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2018.05.16-768x409.png 768w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2018.05.16-1024x545.png 1024w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2018.05.16.png 1854w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>This is the game running at a resolution of 800&#215;600.\u00a0 You can see on my under-powered test machine that the game hits about 30FPS (right now) by doing this.\u00a0 I can also scale the the game itself but it gets pretty garbled pretty quickly if you go below about 75%.<\/p>\n<p>There&#8217;s obviously something about this I&#8217;m not getting right now, which is actually encouraging, because if I run the game at 800&#215;600 then shrink the browser window down to remove the white space around the game display, I get this:<\/p>\n<p><a href=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2-2018.05.16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-188\" src=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2-2018.05.16-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2-2018.05.16-300x225.png 300w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2-2018.05.16-768x575.png 768w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/05\/Lyridia-800x600-2-2018.05.16.png 812w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Notice the FPS is up to almost 60.\u00a0 I don&#8217;t know if the browser is wasting a bunch of resources clearing and redrawing the big white border in the first shot, or if it&#8217;s some other process I don&#8217;t understand, but in any case the game can, right now, be run at nearly 60FPS at a resolution of 800&#215;600 on my terrible test machine and that&#8217;s exciting.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve added the ability to run Lyridia in a &#8220;window.&#8221; This is the game running at a resolution of 800&#215;600.\u00a0 You can see on my under-powered test machine that the game hits about 30FPS (right now) by doing this.\u00a0 I can also scale the the game itself but it gets pretty garbled pretty quickly if&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-planning-and-development"],"_links":{"self":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/comments?post=186"}],"version-history":[{"count":2,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/186\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}