I was just wondering in general the limitations of having moving-game objects stored inside a vector. I was experimenting with general physics where each ball/particle is a class that contains directions and magnitudes of velocity and position. Increasing the number of particles means increasing the iterations of the for loop that updates their position. Is there a better way to organize multiple objects than a vector?
Another question on the efficiency of bitmap drawings: I'm not very advanced in graphics, I've been double-buffering the screen re-draws so far, and clearing the buffer before each draw. To maintain the background I store it as a bitmap in the game and redraw the bitmap to the buffer before drawing the 'moving' parts. Is there a better way to keep a background, and have moving parts re-drawn? What about objects that have the potential to move, but currently aren't? This method means they'll have to be redrawn regardless of movement. General improvement suggestions?
Thanks!
Edit: I use Dev-C++, and the Allegro library