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 - val

Pages: [1]
1
Thanks guys for the replies. Didn't know that creating objects on the fly would have *this* much impact on performance. Also thanks, Ixrec, on the #pragma-ing. 

2
Hello.

I'am trying to make a roguelike game, and i'll need quite a few sf::Texts to display messages, the interface, the dungeon, etc. When i tried to add more string to display the game dropped from ~400 fps to ~100 after 5-6 extra texts. Adding ten or so slowed the game down to 30-40 fps. I made a "small" example program in the vein of what iam doing in my main program. Here i start with 4000 or so fps and adding 20 sf::Texts to display slows it down to ~200. I tried appending text to a single string to display with one sf::Text, but the resoult was the same.  Is displaying text this costly? Or iam doing something wrong?

Test Code Below.
(click to show/hide)

Pages: [1]
anything