{"id":32,"date":"2013-07-08T17:01:46","date_gmt":"2013-07-08T17:01:46","guid":{"rendered":"https:\/\/blogs.scummvm.org\/t0by\/?p=32"},"modified":"2022-05-24T17:03:29","modified_gmt":"2022-05-24T17:03:29","slug":"its-done-it-works-its-pretty-and-it-is-not-too-sluggish-on-an-i7-4770-if-you-overclock-it-a-little-and-close-all-other-apps","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/t0by\/2013\/07\/08\/its-done-it-works-its-pretty-and-it-is-not-too-sluggish-on-an-i7-4770-if-you-overclock-it-a-little-and-close-all-other-apps\/","title":{"rendered":"It\u2019s done, it works, it\u2019s pretty and it is not too sluggish on an i7-4770 if you overclock it a little and close all other apps."},"content":{"rendered":"<p>\u2026it\u2019s the best thing ever!<\/p>\n<p>We left with me trying to come up with an alternative approach to handle the rotation problem because rotating first and centering later was a mess because of rounding errors piling up.<\/p>\n<p>We also talked about bounding boxes.<\/p>\n<p>So, the good news is that the new approach \u2013 it works.<\/p>\n<p>It is definitely better than the other approach, compare:<\/p>\n<p><a href=\"https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34\" src=\"https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks.png\" alt=\"\" width=\"1632\" height=\"638\" srcset=\"https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks.png 1632w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks-300x117.png 300w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks-1024x400.png 1024w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks-768x300.png 768w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks-1536x600.png 1536w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/it-vorks-1200x469.png 1200w\" sizes=\"auto, (max-width: 1632px) 100vw, 1632px\" \/><\/a>The old &amp; ugly one is left, the new and pretty one is right.<br \/>\nEven better, you can zoom as much as you want and it will stay perfectly centered instead of wandering around.<\/p>\n<p>It\u2019s actually good enough to <em>play<\/em> the J.U.L.I.A. Greenlight demo, ladies and gentlemen:<\/p>\n<p><a href=\"https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/no_spoiler.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-35\" src=\"https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/no_spoiler.png\" alt=\"\" width=\"1040\" height=\"781\" srcset=\"https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/no_spoiler.png 1040w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/no_spoiler-300x225.png 300w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/no_spoiler-1024x769.png 1024w, https:\/\/blogs.scummvm.org\/t0by\/wp-content\/uploads\/sites\/43\/2013\/07\/no_spoiler-768x577.png 768w\" sizes=\"auto, (max-width: 1040px) 100vw, 1040px\" \/><\/a>See those rays? Those are rotated &amp; scaled sprites. Yay!<br \/>\nJust wait for the patch to be merged (or for some horribly bad showstopper to pop up), download the demo here and see for yourself.<\/p>\n<p>How did I do it?<br \/>\nWell, we are talking about it in two blog posts:<\/p>\n<ul>\n<li>Rotation made stupid<\/li>\n<li>Interpolation made stupid<\/li>\n<\/ul>\n<p>Now, the only problem with it is that it\u2019s rather slow.<br \/>\nWell, not \u201cwith it\u201d (even if the interpolating code could do with some optimization), but with the whole of the GFX\/rect subsystem.<br \/>\nSomething I\u2019ll tackle on the the second half-term, I guess.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2026it\u2019s the best thing ever! We left with me trying to come up with an alternative approach to handle the rotation problem because rotating first and centering later was a mess because of rounding errors piling up. We also talked about bounding boxes. So, the good news is that the new approach \u2013 it works. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/posts\/32\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/t0by\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}