Sign in to follow this  
Nokame

RenderTarget2D and minimizing fullscreen application

Recommended Posts

Nokame    153

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/

Share this post


Link to post
Share on other sites
AmzBee    485

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this