Texture Swaps and Vertex Batches - Optimizing Games in GameMaker
Vertex batch breaks and texture swaps have a reputation for being the cause of a lot of performance issues in GameMaker. It turns out to be a lot more complicated than that! Let's have a look at some sample projects to try and learn what kind of effect batch breaks and texture swaps will (and won't) have on your game's performance.
If game development on a Raspberry Pi is something that interests you, I've made a video on that:
https://youtu.be/OH6LskFeD8Q
Textures and texture pages in GameMaker:
https://youtu.be/qstoJb9NMZk
The Diorama Camera in GameMaker:
https://youtu.be/WURIeXi4rJ8
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 their own branch.
https://github.com/DragoniteSpam-GameMaker-Tutorials/3DOptimizationDemos/tree/optimization-texture-swaps
3D optimization playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrf_CJSA7fVU1tkjGVv5Sq2t
0:00 Introduction
0:35 Explaining the sample project
3:17 What are texture swaps and vertex batches?
5:56 Running the demos as inefficiently as I possibly can
6:58 fps vs fps_real vs frame time
8:04 What happens when we cut down on texture swaps
10:19 What happens when we cut down on vertex batch breaks
13:56 The all-important matter of context
18:08 The slightly less important matter of mobile games
19:06 The end
Wishlist Wizarducks on Steam! It runs on just about anything.
https://store.steampowered.com/app/2769920/Wizarducks_and_the_Lost_Hat/
#GameMaker3D
#GameMakerOptimization
- - - - -
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!