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

Pages: [1]
1
Window / Bottleneck sf::Event
« on: July 09, 2008, 07:26:41 pm »
Hi,

I tried it out, the result is the same  :(

2
Window / Bottleneck sf::Event
« on: July 09, 2008, 12:21:28 am »
Hi Laurent and everybody,

I'm quite new to SFML and I like it very much so far, but I got stuck soon because of performance,  my plan is doing most of the rendering stuff in plain OpenGL (except fonts, probably the whole GUI).
Everything works quite ok  (rendering 2048 untextured cubes at 1100+ FPS), until i add any simple event handing like:

Code: [Select]

        ...initialize and go to main loop...


        sf::Event Event;
        App.GetEvent(Event);
        const sf::Input& Input = App.GetInput();

        bool  EscapeKeyDown = Input.IsKeyDown(sf::Key::Escape);

        if (EscapeKeyDown)
        {
             App.Close();
        }

        ...render some opengl stuff...



... which drops the FPS below 50!!! Same effect if i compile your OpenGL demo, the cube stops rotating if I move the mouse heavily (but the precompiled version works fine).  
I have the most current libs and am using using Code::Blocks/MingW, most current versions on WinXP SP2. Didn't find similar problems in the forums. Is there an known error, or better, a solution for this?
Any suggestions appreciated!

wkr
sit

Pages: [1]
anything