1
General / SFML SVN Snapshots
« on: February 02, 2011, 05:26:33 pm »
Big Thx
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.
1/ Test : sprites
SDL displayed 27 frames
SFML displayed 48 frames
--> SFML is 1.8x as fast as SDL
2/ Test : alpha-blended sprites
SDL displayed 12 frames
SFML displayed 53 frames
--> SFML is 4.4x as fast as SDL
3/ Test : rotating sprites
SDL displayed 6 frames
SFML displayed 51 frames
--> SFML is 8.5x as fast as SDL
4/ Test : static text
SDL displayed 479 frames
SFML displayed 1110 frames
--> SFML is 2.3x as fast as SDL
5/ Test : dynamic text
SDL displayed 33 frames
SFML displayed 464 frames
--> SFML is 14.1x as fast as SDL
const sf::Vector2f& getPosition(); //as i had id before, wrong
const sf::Vector2f& getPosition() const; //as i have it now, correct
void Map::initMap(ImageHandler& ih,const PlayerD& p) {
std::vector<Tile> tmp;
float tmpPosX = p.getPosition().x;
float tmpPosY = p.getPosition().y;
int tmpTileX = p.getActTile().x;
int tmpTileY = p.getActTile().y;
}
public:
Map(int x,int y,ImageHandler&,const PlayerD&);
private:
void initMap(ImageHandler&,const PlayerD&);
Map::Map(int x,int y,ImageHandler& ih,const PlayerD& p) {
initMap(ih,p);
}