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

Pages: [1]
1
General / Polling for events drastically lowers frame rate
« on: October 14, 2011, 08:19:42 am »
Quote from: "Laurent"
Can you try to comment the call to ProcessJoystickEvents in src/SFML/Window/Window.cpp?


I commented out "ProcessJoystickEvents();" on line 121 and line 133 of src/SFML/Window/WindowImpl.cpp and recompiled.

It is working beautifully. :D

You are a god damn genius.

What does this mean though?

2
General / Polling for events drastically lowers frame rate
« on: October 14, 2011, 04:06:49 am »
Quote from: "OniLink10"
That... is weird. It doesn't even sound like a driver issue. It sounds more like your computer is on the verge of imploding. Do you have anti-virus installed? What operating system?


No anti-virus, but I run Spybot S&D and Ad-aware SE Personal every once in awhile. I'll try doing that now.

Operating system is Windows 7 32bit (Can't believe I forgot to include that in the OP)

Also, I should mention that this doesn't happen with any other games I have played, but then again, most of those are Direct3D AAA titles.

3
General / Polling for events drastically lowers frame rate
« on: October 14, 2011, 01:29:54 am »
I am having a strange problem.

Anytime I am polling for events, my frame rate drops incredibly. Even more so if I am moving the mouse while polling for events.

For example, with this code:
Code: [Select]

#include <SFML/Graphics.hpp>


int main()
{
    sf::RenderWindow window(sf::VideoMode(800, 800), "SFML window");


    while (window.IsOpened())
    {
        window.Clear();


        /*
        sf::Event event;
        while (window.PollEvent(event))
        {
            if (event.Type == sf::Event::Closed)
                window.Close();

            if (event.Type == sf::Event::KeyPressed)
            {
                if (event.Key.Code == sf::Keyboard::Key::Escape)
                    window.Close();
            }
        }
        */

        window.Display();
    }

    return EXIT_SUCCESS;


I get well over 1000 FPS with this code. When I uncomment the block polling for events, I get around 50 fps, and if I move my mouse around the window (slowly or quickly), it drops to a range of 1-20.

My specs are:
Q6600 Intel Core2Quad 2.66ghz
Nvidia GeForce GTX 260
3.5GB of RAM

I am using SFML 2.0

I don't think this is an SFML problem, as old programs I made in SFML 1.6 on a different computer, run slow as well on this computer. Also, my friend who also uses SFML 2.0, sent me a program he made that just displays the FPS in the graphics window. As I expected, I get the same low fps problem.

Are there any known issues that would cause this? I've already tried updating my graphics card drivers, and it hasn't helped.

Thanks.

Edit:

Operating system is Windows 7 32bit

Also, I have tried compiling my programs in both debug and release mode, as well as both dynamic linking and static linking, and I have the same issue.

4
General / Windows in Linux
« on: June 30, 2008, 03:44:42 am »
Quote from: "Laurent"
Hi

Unfortunately, there are a lot of problems with Ubuntu 8.04. The only thing I can help you with, is the sound : you can try to use the latest version of openal-soft instead of OpenAL.

Have you tried also recompiling SFML yourself ? It should make any difference, but who knows.

I'm sorry I can't help much with Ubuntu 8.04 issues, every time I try to upgrade my 7.10 it fails.


I can't even get SFML to compile. (Running Ubuntu 8.04)
Code: [Select]
In file included from WindowImpl.cpp:40:
../../SFML/Window/Linux/WindowImplX11.hpp:33:22: error: X11/Xlib.h: No such file or directory
../../SFML/Window/Linux/WindowImplX11.hpp:34:20: error: GL/glx.h: No such file or directory
In file included from WindowImpl.cpp:40:
../../SFML/Window/Linux/WindowImplX11.hpp:163: error: ‘XVisualInfo’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:163: error: ‘XVisualInfo’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:193: error: ‘Bool’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:201: error: ‘XEvent’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:211: error: ‘KeySym’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:232: error: ISO C++ forbids declaration of ‘Display’ with no type
../../SFML/Window/Linux/WindowImplX11.hpp:232: error: invalid use of ‘::’
../../SFML/Window/Linux/WindowImplX11.hpp:232: error: expected ‘;’ before ‘*’ token
../../SFML/Window/Linux/WindowImplX11.hpp:237: error: ‘XIM’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:242: error: ‘Window’ in namespace ‘::’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:244: error: ‘GLXContext’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:245: error: ‘Atom’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:247: error: ‘Cursor’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:248: error: ‘XIC’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:163: error: ‘XVisualInfo’ was not declared in this scope


:(

Pages: [1]