0
\$\begingroup\$

I m working on a project that captures the game windows and send it to another node. As long as game is in focus or maximize, the rendering is smooth and steady. When the game is out of focus or minimized, the streaming shows jerky effect. When you maximize the windows, the affect again disappears. Is that an issue of directx game rendering or something else? How this problem can be solved?

\$\endgroup\$

closed as off-topic by Anko, jmegaffin, Seth Battin, Josh Apr 9 '15 at 21:45

  • This question does not appear to be about game development within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ Are you the one who programmed the game? \$\endgroup\$ – Alexandre Vaillancourt Mar 25 '15 at 12:44
  • \$\begingroup\$ No.. I m just fetching frames when the game renders \$\endgroup\$ – Yasir Majeed Mar 26 '15 at 4:05
  • 1
    \$\begingroup\$ Then it is probably a feature implemented by the game dev team to reduce the load on player's CPU while they are not playing the game. I know Diablo 3 does this. \$\endgroup\$ – Alexandre Vaillancourt Mar 26 '15 at 11:34
  • 3
    \$\begingroup\$ I'm voting to close this question as off-topic because it's about the technicalities of a specific game's rendering implementation, only answerable by that game's developers. \$\endgroup\$ – Anko Mar 28 '15 at 13:12
  • \$\begingroup\$ There are issues with windows 10 and how it handles minimized rendering for both OpenGL and DirectX which can become extremely inefficient and extremely CPU intensive, by an order of magnitude or more when compared to the same render in a window or full screen. I believe it has to do with how windows handles rendering to support its thumbnail features and the in efficiency of the faux device contexts. Take care to not only handle normal background modes, but also decrease the frequency of render itself to 10 fps or less even if maintaining the simulation at 60 to stay network responsive. \$\endgroup\$ – Celess May 22 '18 at 2:40
1
\$\begingroup\$

If the system is not under heavy load, there is nothing inherent in DirectX that will reduce performance for a minimized or background window's process. If the system is under heavy load, the OS may prioritize scheduling of the foreground window's process above other processes.

As @AlexandreVaillancourt mentioned, games will often intentionally throttle back their rendering when their primary window is minimized or goes out of focus, in order to enable a better experience for users who temporarily alt+tab to another process (e.g. Teamspeak, a web browser, etc.).

\$\endgroup\$
  • \$\begingroup\$ Can we make such process think that it is still in focus, when it goes out of focus? I couldn't find a way to keep multiple windows in foreground/focused. \$\endgroup\$ – LifeH2O Dec 31 '15 at 14:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.