SFML community forums

Help => General => Topic started by: Henrik.Flink on February 17, 2008, 03:22:52 pm

Title: Bad perfromance SFML 1.2
Post by: Henrik.Flink on February 17, 2008, 03:22:52 pm
I just change SFML version 1.1 to 1.2 in my project and the performance was aweful, i render 192 32*32 tiles and it's "hacking" alot, i know that the bottle neck is in the render of the tiles. I have not change anything in that code between the versions, what could it be?
Title: Bad perfromance SFML 1.2
Post by: zarka on February 17, 2008, 04:21:39 pm
if you are only using SFML Sprites try to do a
Code: [Select]

myRenderWindow.OptimizeForNonOpenGL(true);

 in your initialization code...

that should give better performance :)
Title: Bad perfromance SFML 1.2
Post by: Henrik.Flink on February 17, 2008, 05:01:31 pm
:?  thanks, but it didn't to the trick. I really wonder what it could be, it must be something thats in SFML 1.2 that is not in 1.1
Title: Bad perfromance SFML 1.2
Post by: Laurent on February 18, 2008, 02:35:15 am
OptimizeForNonOpenGL(true) must improve the performances, if it didn't then you probably made a mistake. Can we have a look at your code ?