Back to Browse

Matrix Operations - Optimizing 3D Games in GameMaker

1.7K views
Apr 3, 2021
24:24

You might think that drawing a million things is always going to be the major source of slowdown in 3D games in GameMaker, but that is not always the case. Let's cut the amount of time it takes to render a frame in half just by changing the way we do our matrix operations! I'll be running a lot of these tests on a Raspberry Pi. If you don't have one of those, don't worry; GameMaker games run pretty much the same on them as it does on a desktop PC. The only thing I'm going to be using it for is comparing performance on different devices, and using it to track down performance bottlenecks on weaker devices. In this case, you may notice that being smart about matrix use isn't quite as good about boosting performance as it is on my desktop computer, mainly because the Pi has a considerably weaker GPU and the matrix optimizations done here affect primarily the GML code that runs on the CPU. All the same, if game development on a Raspberry Pi is something that interests you, I've made a video on that: https://youtu.be/OH6LskFeD8Q Here's the repository where I'll be putting the demo code: https://github.com/DragoniteSpam-GameMaker-Tutorials/3DOptimizationDemos The changes made in this video are on the optimization-matrices branch. https://github.com/DragoniteSpam-GameMaker-Tutorials/3DOptimizationDemos/tree/optimization-matrices 3D optimization playlist: https://www.youtube.com/playlist?list=PL_hT--4HOvrf_CJSA7fVU1tkjGVv5Sq2t The thumbnail icon is a combination of: optimization by IconPai from the Noun Project Time by libertetstudio from the Noun Project #GameMaker3D #GameMaker3DOptimization #GameMaker3DMatrix - - - - - I've now made that Patreon: https://www.patreon.com/wizardragon That promised social media link spam. https://twitter.com/DragoniteSpam Transition / idle music is by my old friend Kamex: https://www.youtube.com/user/GreatGabite/about Rate, comment, subscribe, watch more, enjoy!

Download

1 formats

Video Formats

360pmp442.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Matrix Operations - Optimizing 3D Games in GameMaker | NatokHD