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

Author Topic: taskbar slow  (Read 2183 times)

0 Members and 1 Guest are viewing this topic.

Xp

  • Newbie
  • *
  • Posts: 13
    • View Profile
taskbar slow
« on: August 21, 2011, 08:21:36 pm »
There is a weird problem with sfml 2.0 that when your App (sfml) is open and click on another program or click 2 times in SFML program to minimize in taskbar it takes ~3 seconds to take effect.

building examples on last 2.0 for mingw and visual 2010 does the same thing. (static)

I tested this in 1.6 and this doesn't occur


minimal code
Code: [Select]
#include <SFML\Graphics.hpp>

int main()
{
sf::RenderWindow App(sf::VideoMode(200, 300), "test");
sf::Event Event;
while(App.IsOpened())
{
if(App.PollEvent(Event))
{
if(Event.Type == sf::Event::Closed)
{
App.Close();
}
}
}

return 0;
}


any idea what it can be?

jkalmeij

  • Newbie
  • *
  • Posts: 8
    • View Profile
taskbar slow
« Reply #1 on: August 22, 2011, 05:03:02 pm »
Unable to reproduce problem using g++ as compiler and linking dynamically.
Ran on Ubuntu with an ATI graphicscard.

Did change the code to #include <SFML/Graphics.hpp>, and added a App.Display(); into the loop.

Probably not that helpful to the opening poster, but maybe to those trying to find a cause.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
taskbar slow
« Reply #2 on: August 22, 2011, 11:22:22 pm »
Hi, I think this is already a known issue:
https://github.com/SFML/SFML/issues/69