title: Fill array objects with the same data or use a pointer?
body: <p>I'm developing a game using c++ and I don't know what's the better approach to my problem.
  I have an array with <code>gameObject</code> objects, each one has an array with frames of animation that I loop through to show the animation in the game.
  The animations are time based and I have to tell the objects how much time has passed since the last frame was displayed (<code>deltaTime</code>) to calculate what frame I will display in this iteration.
  Everything ok until here.
  Is it ok to feed the <code>deltaTime</code> to the objects with a setter method? Or would be better if I had a pointer in each object to a global variable? Or is there another even better approach here regarding performance and organization? Keep in mind that there'll be hundreds of objects.
  Thank you for your time :)</p>