DX11 - Window Focus - Delay

Started by
0 comments, last by ongamex92 10 years, 5 months ago

Hi guys. happy.png

My app chooses whether to render the scene depending on whether the window is in focus, like the following:


...
engine->Update();
pVoid_UserUpdate();

if (GetActiveWindow() == hWnd) engine->RenderFrame();
...

It works ok, just it bugs out when I re focus the window after a while, it may take quite a long time before responding, debugging shows that when re focusing it, the engine->RenderFrame(); is called, but nothing is shown on the screen, and it even sometimes goes into a complete retard stage and never exits this function, while allocating tons of memory (Jumps up and down forever and sometimes goes to 1.8-2 gb memory usage and just stops working correctly ):


devcon->PSSetShaderResources(7, 1, &pRes_NULL);

What could be the cause of this? Do I need to supply you with some more information about this issue?

Thank you for your time. smile.png

-MIGI0027

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/, cuboidzone.wordpress.com/

Advertisement

http://msdn.microsoft.com/en-us/library/windows/desktop/ms646292(v=vs.85).aspx well look at the last post at the "Community additions" sections. Maybe that is the problem?

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633505(v=vs.85).aspx

This topic is closed to new replies.

Advertisement