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

Pages: [1]
1
Window / Re: SFML Windows OS controls causing random freezing
« on: November 14, 2013, 12:41:12 am »
No joysticks, just mouse, keyboard, and HDDs

2
Window / Re: SFML Windows OS controls causing random freezing
« on: November 13, 2013, 11:08:20 pm »
2.1, downloaded straight off the site two days ago. 

3
Window / Re: SFML Windows OS controls causing random freezing
« on: November 13, 2013, 10:56:48 pm »
It's hanging in popEvent() and inside of that processEvents() and processJoystickEvents().  It seems like this is the same problem as described in this thread: https://web.archive.org/web/20111212214226/http://sfml-dev.org/forum/viewtopic.php?t=6079, from 2011.  Is this still not fixed?

4
Window / Re: SFML Windows OS controls causing random freezing
« on: November 13, 2013, 02:21:32 pm »
The only antivirus I have would be Windows Defender that comes with Windows 8.  Watching Task Manager does not show any spike in CPU usage during in the freeze, and profiling simply reports much time spent in sfml-window-d-2.dll

5
Window / SFML Windows OS controls causing random freezing
« on: November 12, 2013, 09:46:08 pm »
Windows 8 x64, Visual Studio 2013, Release and Debug build, using static SFML lib.

Usually immediately when I start the program, but sometimes not until after a few clicks, the window will freeze for 7-12 seconds.

This usually happens which I drag the window around, hover over an edge so the resize cursor appears, or hover over any of the window buttons.

int _tmain(int argc, _TCHAR* argv[])
{
        sf::RenderWindow *window=new sf::RenderWindow(sf::VideoMode(800, 600), "title");

        window->setFramerateLimit(60);
        // run the program as long as the window is open
        while (window->isOpen())
        {
                // check all the window's events that were triggered since the last iteration of the loop
                printf("start");
                sf::Event event;
                while (window->pollEvent(event))
                {
                        // "close requested" event: we close the window
                        if (event.type == sf::Event::Closed)
                                window->close();
                        printf("event!");
                }
                printf("clear");
                if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
                {
                        window->close();
                }
                window->clear();
                printf("display");
                window->display();
                printf("done");
        }
        delete window;
        return 0;
}
 

the freeze happens somewhere between the "start" and the "event!" but also sometimes between "display" and "done"

Pages: [1]
anything