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.


Topics - Staggy

Pages: [1]
1
Graphics / Huge slowdown when drawing
« on: April 09, 2010, 04:06:56 pm »
I'm drawing the background for a pacman clone, using a grid of tiles. Each Tile is a basic structure that holds a pointer to a sf::Sprite. My grid at the moment is 28  by 31 - so 868 sprites drawn each frame. The problem is this absolutely murders the framerate, taking it down from about 80 FPS to about 8.

Am I going about this in the right way, or am I missing the point of sf::Sprite? Or is it something else that I should be changing in my approach? This just seems like too big a slowdown when all I'm doing is drawing the background.

Pages: [1]