Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7444023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:25:37+00:00 2026-05-29T11:25:37+00:00

using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; namespace proj { public class game

  • 0
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace proj
{
    public class game : Microsoft.Xna.Framework.Game
    {
        GraphicsDeviceManager graphics;
        public static SpriteBatch sprite_batch;
        public static Texture2D texture;

        public game()
        {
            graphics = new GraphicsDeviceManager(this);
        }

        protected override void Initialize()
        {
            graphics.PreferredBackBufferWidth = 300;
            graphics.PreferredBackBufferHeight = 300;
            graphics.ApplyChanges();
            Content.RootDirectory = "Content";
            sprite_batch = new SpriteBatch(GraphicsDevice);
            texture = Content.Load<Texture2D>("a"); // 1 x 1, white
            base.Initialize();
        }

        protected override void Update(GameTime game_time)
        {
            base.Update(game_time);
        }

        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);
            sprite_batch.Begin();
            if (gameTime.IsRunningSlowly)
            {
                sprite_batch.Draw(texture,
                    new Rectangle(50, 50, 200, 200), Color.OrangeRed);
            }
            sprite_batch.End();
            base.Draw(gameTime);
        }
    }
}

For me the orange square is visible nearly all the time, however almost nothing is happening at all.

60 Update nothing and 60 Draw nothing, making 120 almost empty function calls that should occur and they have a whole second to do this in for the program to not be “running slowly”, yet gameTime.IsRunningSlowly returns True nearly all the time.

I’m sure my computer is fast enough to handle this better, whats going on? I need to be able to use gameTime.IsRunningSlowly, I can’t if it’s not working properly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:25:38+00:00Added an answer on May 29, 2026 at 11:25 am

    Do nothing. The problem will clear up all by itself magically!

    Seriously though, IsRunningSlowly shouldn’t be lying to you. In a basic game project it should never be returning True unless system resources are scarce. If it’s returning True all the time then I’d recommend taking a look and seeing what other processes are running.

    IsRunningSlowly is one of the XNA framework features that has been there from the start and while there is potential you’ve found some edge case that exposed some strange bug with it reporting incorrectly, it is unlikely.

    I’d recommend re-starting the PC and then trying again. If the problem persists, you’re going to have to start examining what other processes are using system resources at start-up or evaluating your current hardware setup (and you shouldn’t need much for an empty game project to run at 60 FPS, the XNA default)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; namespace UnitTest.Model { [TestFixture] public class
using System; namespace random { interface IHelper { void HelpMeNow(); } public class Base
using System; using System.Math; class test { public static void Main() { Console.Write(Enter any
Given this declaration: using System; using System.Collections; using System.Collections.Generic; namespace AProject.Helpers { public static
Here is my code: using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using System.IO; Stream stream = TitleContainer.OpenStream(sounds/BEEP.WAV);
I am working on a game project using Microsoft XNA framework, although this question
Consider the following: using System; using System.Dynamic; namespace DynamicTest { class Program { static
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GenericCount { class Program {
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace ConsoleApplication1 { public
using System; using System.IO; using System.Net; using System.Text.RegularExpressions; namespace Working { class Program4 {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.