I'm having a problem that happens randomly: when my game finishes and restarts, there's about a 1/10 chance that my objects do not redraw, but the game itself still works (I can still hear sound effects etc, and if I finish the game with the graphics not working and it restarts again, the graphics will come back). Is this a graphics card issue possibly (I haven't had a chance to test it on another computer)?
Here's the code in the game class, I can post the other classes if necessary, they work like you would expect:
protected override void Initialize()
{
// Initialize sprite objects
arrow = new Manager();
background = new Background();
base.Initialize();
}
protected override void LoadContent()
{
spriteBatch = new SpriteBatch(GraphicsDevice);
arrow.LoadContent(this.Content, "Arrow", this.graphics);
background.LoadContent(this.Content, "Table");
}
protected override void Update(GameTime gameTime)
{
if (arrow.resetgame == true)
{
Initialize();
arrow.resetgame = false;
}
arrow.Update(gameTime);
base.Update(gameTime);
}
Thanks for any help.