david.wtf · @flashmasterdash
89 followers · 444 posts · Server mastodon.gamedev.place

I didn't know about that one so far! The "ref" modifier will tell the compiler that struct instances may only be allocated on the stack, preventing them from being used in heap-allocated locations. Cool! It couldn't be easier to write allocation free-code 🙌

learn.microsoft.com/en-us/dotn

#gamedev #unity3d #unitydev #dotnet #devtips #stackthatheap

Last updated 1 year ago