Me, watching someone making a static array as a local variable inside a function, that gets called on every frame: "Please, for the sake of my sanity. Make it a global variable. It doesn't change, so don't create and destroy an entire array on every function call! This hurts physically!"

Espcially, that's from a tutorial for beginners and it wouldn't be any harder to understand if it were a global, instead of a local variable.

But this is just really bad practice.

· · Web · 1 · 0 · 2

@maxine But I wanna thrash my heap and waste cycles allocating space for an array over and over and over and over!

Sign in to participate in the conversation

Small, friendly instance for friends. Come join us and be cute and soft and small and cute.