what do you think is the fastest for accessing tile and environment data? (Gamemaker)

- tilemap_get on the tilemap
- buffer_peek on a processed version of the tilemap
- an array stored on the object with all surrounding tiles that's updated when you move to a new grid position

I guess my real question is how fast it is to access an array vs accessing a function or buffer

Follow

while talking about this in a server, I realized that the array would be updated whenever Lance moved grid positions in a 16x16 grid, which could potentially be a lot of updates depending on how far the collision pushes him out, making this entire thing not optimal lmao

Sign in to participate in the conversation
snouts dot online

snouts.online is a friendly, furry-oriented, lgbtq+, generally leftist, 18+ sex-positive community that runs on mastodon, the open-source social network technology. you don't need a snout to join, but it's recommended!

snoutlogo1