Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - xXGeriXx

Pages: [1]
1
Graphics / Drawing efficency concern
« on: December 09, 2015, 07:37:03 pm »
So I just created a game that would read from a matrix of sprites which will be the background. Each element of the matrix corresponds to a tile(an image) of the background.

My concern is that this looks way too inefficent, since i have to read+draw all the elements of the matrix every single frame(iteration of the game loop) when this background doesn't even get modified at all.

Is this fine? Should i photoshop every background into a single image? Is there a way to partialy clear the window instead of completely clearing it? Any other solutions?

Thanks in advance. I've been using sfml for a week, please bare with me :P

Pages: [1]
anything