SFML community forums

Help => General => Topic started by: Xp on August 21, 2011, 08:21:36 pm

Title: taskbar slow
Post by: Xp 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?
Title: taskbar slow
Post by: jkalmeij 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.
Title: taskbar slow
Post by: Contadotempo on August 22, 2011, 11:22:22 pm
Hi, I think this is already a known issue:
https://github.com/SFML/SFML/issues/69