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

Pages: [1]
1
Window / Re: issue with pollEvent in SFML 2.0
« on: August 26, 2012, 09:56:03 am »
Looking through the forums I figured out that the problem is the joystick :\

I have a bluetooth joystick installed - I connect the ps3 joystick to the computer, and I think this causes the problem. If I change this

const sf::Time connectionRefreshDelay = sf::milliseconds(500);

to this

const sf::Time connectionRefreshDelay = sf::milliseconds(50000);

in the source, then everything works smoothly.

2
Window / issue with pollEvent in SFML 2.0
« on: August 25, 2012, 05:00:14 pm »
Hello. I'm having an issue with pollEvent.

please check out my code

#include <SFML/Graphics.hpp>

int main()
{

    sf::RenderWindow window(sf::VideoMode(800, 600), "SFML works!");
    sf::Text text("bla bla ");
    text.setPosition(100,100);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }
        window.clear();
        window.draw(text);
        text.rotate(15);
        window.display();
    }

    return 0;
}
 

what it should be doing is just rotate some text really really fast, but when I move my mouse around the window, the text stops and nothing happens (also the text is rotating really laggy if the mouse is on the window). If I comment out the while loop, everything works as it should.

Also I noticed the same lags and slowdowns in the sample opengl.exe (included with sfml 2.0)

Does anyone know how to fix this?

(this is run on windows 7)

Pages: [1]
anything