Hello,
yeah, the Title is a little bit involved... The problem is, if I create a Window with
SFML and it is on the Foreground, it's lagging if I try to switch as example to Firefox,
with the Mouse and the Taskbar its lagging, with Alt + Tab not!
Mhh.. No answeres?I reason you got no reply is because I think all of us have no idea what your talking about. I couldn't see anything in that screenshot and saying your window is "lagging" could mean a lot of things. You need to provide some code and explain what you mean by combining SFML with WinAPI.
And this problem is very wiry, only if I combine SFML with WinAPI this problem is don't
existing anymore, but this costs the platform-independence and is anyway definitely not the best
way to solve this problem...
Still hoping for a solution...
Btw. the Source Code contains only the Render part (copy & paste from tutorial)
and 2 console outputs! Nothing else!
First I agree with, please post your exact code. ;)QuoteBtw. the Source Code contains only the Render part (copy & paste from tutorial)
and 2 console outputs! Nothing else!
Could you still provide the code please? Because I don't want to read though the tutorial to understand what's going on.
Also have you ever thought about that using WinAPI with SFML is maybe deapreciated. I mean you're using a tutorial for SFML 1.5, althought has changed since then.
The only reasonable explenation would be that the message queue gets spammed somehow...
Use a debugger and a profiler to figure out what's really going on.
What is the cpu usage of the test application when it is running? It sounds as if you are letting the test program run the render loop as fast as it can without any type of framerate limitation. Try limiting the framerate and see if it solves the problem.The CPU Usage is between 1-7%, I think this is really normal / low...
The only reasonable explenation would be that the message queue gets spammed somehow...This can be the reason, but I'm honest, I don't know how to see the message queue in...
Use a debugger and a profiler to figure out what's really going on.
The Code, how I written before, is really standard code:
Why did you then say you've used some code from another old tutorial?
I'm using Win7 too and I don't experience anything like this for any SFML application.
I send the Test program to another friend that was actually online, he has a bigger
problem... same code like posted before -> Can't open the Window, its minimzed, and
don't comes in the foreground... only the console is in the foreground, I was with teamviewer
on his desktop, and I can confirm it...
Have you test SFML 2.0 Application too and have you really made sure that it dont "laggs"?That's what I was say...
I bet his screen resolution was smaller than the size of the window (either vertically or horizontally) the window then won't get displayed. I think Laurent will fix this, at least he stated this in another forum post.
I've looked at your video again and I see that you've changed your taskbar apperance to the old taskbar style. Does it lag too if you use the normal one?
Also is this caused by another application, because I couldn't find that option.