Buffers


A binary buffer is a region of physical memory used to temporarily hold data while it is being moved from one place to another or manipulated in some way, for example you can use a buffer to hold packet data awaiting transmission over a network or for storing a packet that has been received over a network. GameMaker Studio 2 has a number of specific functions related to creating, modifying and loading/saving buffers, but before using them please note the following points:

The following pages explain how buffers work within the context of GameMaker Studio 2 and contain a couple of code examples for those users that are unsure of how to use them:

  1. Using Buffers

The following functions exist for you to use with binary buffers in your games:

There are also two extra functions related to buffers that can be used to save and load game states (note that they require a buffer to have been created previously):

Finally, you can also use special Vertex Buffers to create your own custom primitives or models, etc... You can find out more about these from the following section of the manual:

  1. Miscellaneous Game Functions