Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

RenderTarget2D and minimizing fullscreen application

  • You cannot reply to this topic
1 reply to this topic

#1 Nokame   Members   -  Reputation: 153

Like
0Likes
Like

Posted 14 March 2013 - 12:19 PM

Hi there,

I recently noticd that when I have my game minimized during initialization, it seems to fail in creating RenderTarget2D surfaces.  It has no error message and the game itself looks fine, but any draw call (using spritebatch) that explicitly draws RenderTarget2D objects created during initialization are not visible... as if the pixel data is completely wiped, or never actually initialized due to the application being minimized.  I'm not interested in better ways to draw or whatever... i'm interested in knowing if this specific situation is normal, perhaps it is the reason there are better ways of drawing and saving pixel data.  If anyone can shed light on this, i'd be grateful.

 

Thank you.

https://sites.google.com/site/kingmxf/



Sponsor:

#2 AmzBee   Members   -  Reputation: 417

Like
0Likes
Like

Posted 02 April 2013 - 06:11 AM

The question is do you really need to be rendering while the game is minimized? If you are just creating a game then it seems a bit of a waste of system resources if you want to render stuff while the game is inactive.

 

Aimee


Aimee Bailey
Lead Programmer / Co-Founder

http://xpod-games.com
@XpodGames





PARTNERS