Jump to content
  • Advertisement
Sign in to follow this  
Migi0027

DX11 DX11 - Window Focus - Delay

This topic is 2152 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Edited by Migi0027

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!