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.


Topics - xinux

Pages: [1]
1
Window / Mouse clicks/Key states when window not active
« on: August 15, 2011, 11:05:27 pm »
I'm updating my current project to use the latest sfml version, and I have stumbled upon something I don't know how to solve.

When i de-select my game window and f.e. click the windows start button, my character fires his gun, and if I write something in notepad my character jumps around.

Is there any simple fix, like a bool to set to false to not capture things outside of my application?

Also I want to suggest that 'not capturing things from outside of the application' should be true by default.

2
Window / Creating sf::RenderWindow very slow
« on: August 15, 2011, 03:09:09 am »
Today I decided to revive an old project I haven't touched for a while, and I'm currently updating it with the new changes to sfml 2.
I have been able to fix most things easily, but here I don't know what possibly could be wrong.

Code: [Select]
sf::RenderWindow window;

This line takes, in my current project, ~20 seconds to process.
It works fine, it's just very slow.

Code: [Select]
sf::RenderWindow window;
sf::RenderWindow window2;
sf::RenderWindow window3;


This code takes just as long to process as the single line above.

I tried making a new clean project and ran only that line in the main function, and it processed it instantly.
Now, I have a lot of code in my project, but I don't think any of it could affect it in this way.

I'm using the Qt libs in my project and use Qt Creator (mingw) on Windows 7 (64bit) to compile.
Does anyone have a clue what could be the problem?

Pages: [1]
anything