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

Author Topic: Bad perfromance SFML 1.2  (Read 5210 times)

0 Members and 3 Guests are viewing this topic.

Henrik.Flink

  • Newbie
  • *
  • Posts: 21
    • View Profile
Bad perfromance SFML 1.2
« 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?

zarka

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Bad perfromance SFML 1.2
« Reply #1 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 :)
//Zzzarka

Henrik.Flink

  • Newbie
  • *
  • Posts: 21
    • View Profile
Bad perfromance SFML 1.2
« Reply #2 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Bad perfromance SFML 1.2
« Reply #3 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 ?
Laurent Gomila - SFML developer

 

anything