Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Didn’t knew [$ "prop"] used more resources and time than .prop. Replaced all of them on my autotile system and reduced the time from avg ~200ms to avg ~20ms.

Amazing job!

(1 edit) (+4)

Variables accessed with the dot operator have their hashes evaluated at compile time, but those accessed with the struct accessor have to have them evaluated at runtime

Edit: Struct lookups which can be determined at compile time now are, so there’s no difference between [$ “prop”] and .prop, but there still is for struct lookups from a variable.