Original Post
Hi, when you have a class or struct entity style, filled with data eg position, colour etc, would it be faster memory wise for a function to read them if they were pointed to instead of copied.
eg.
EntityClass myClass;
myClass.position= 343443;
myClass.colour = RED;
//using pointers in function void myFunction(EntityClass * data);
myFunction(&myClass);
//or using no pointers in function void myFunction(EntityClass data);
myFunction(myClass);
Thanks,