Frozen vertex buffers can be drawn faster than regular vertex buffers! As with combining small vertex buffers into a single large one this can be great for reducing the CPU overhead of your game. As with all of the other optimization tricks I've talked about, some restrictions apply.
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/OH6LskFeD8QHere's the repository where I'll be putting the demo code:
https://github.com/DragoniteSpam-GameMaker-Tutorials/3DOptimizationDemosThe changes made in this video are on the optimization-matrices branch.
https://github.com/DragoniteSpam-GameMaker-Tutorials/3DOptimizationDemos/tree/optimization-freeze3D optimization playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrf_CJSA7fVU1tkjGVv5Sq2tDirectX11 vertex object usage:
https://docs.microsoft.com/en-us/windows/win32/api/d3d11/ne-d3d11-d3d11_usage(I forgot to include his name in the screenshot, but the user on the GameMaker Discord who sent it to me is SweetLuna, he's not around much anymore but if you ever see him remember to tell him thank-you.)
The thumbnail icon is a combination of:
optimization by IconPai from the Noun Project
Time by libertetstudio from the Noun Project
#GameMaker3D
#GameMaker3DOptimization
#GameMakerVertexBuffer
- - - - -
I've now made that Patreon:
https://www.patreon.com/wizardragonThat promised social media link spam.
https://twitter.com/DragoniteSpamTransition / idle music is by my old friend Kamex:
https://www.youtube.com/user/GreatGabite/aboutRate, comment, subscribe, watch more, enjoy!
...
https://www.youtube.com/watch?v=80av1I8Lyl0