Can you guys test my FPS?

This is a discussion on Can you guys test my FPS? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I am making a game, not anywhere CLOSE to being complete, but I just want people to test out my ...

  1. #1
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552

    Can you guys test my FPS?

    I am making a game, not anywhere CLOSE to being complete, but I just want people to test out my stripped down version of the game to see the FPS. I took off almost everything, so basically it's just the FPS reader thing and a few graphics. The FPS is at the top-left corner of the screen.

    If you would do this big favor for me, I would greatly appreciate it. If you decide to do it, reply with your:

    Operating System (Windows 98, XP, etc.)
    Processor (Athlon XP 1800+ 1.4 GHZ, Intel P4 2.0 GHz, etc.)
    RAM (how much memory you got, and the type of memory, if you know it)
    DirectX version
    Video Card Brand and/or Chipset and how much VRAM you have (ATI Radeon 8500 128 MB, WinFast GeForce 4 Ti4200 64MB, SiS 605 16MB, etc.)

    I get an average of 11 FPS, sometimes 12 on my sytem, here is what I have

    Windows ME
    AMD K6-2 500MHz
    184 MB PC100 RAM
    DirectX 8.1
    SiS 505 8MB (no GeForce)

    Please note, that you need the Allegro 4.0 runtime or higher to run it (you can get the runtime at www.allegro.cc if you want it, it's like a 400k download I think)

  2. #2
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    I'm gonna post the file for it when I get it zipped (I'm so stupid, forgetting to attach the file lol)

  3. #3
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    here it is. Sorry for the big filesize.

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    woah...I just want to comment for a second on your post.

    You are getting 11 fps on a stripped down version of your program?

    The human eye sees at 16 fps....so therefore if you are truly getting 11 fps your graphics wont even appear to be animated...

    A finished game should run at at least 25 fps.

    I think you have a problem with your code to test fps.....because no one can have that slow of fps on a stripped version of a game....especially on the system you are using...

    rewrite your fps code.
    My Website

    "Circular logic is good because it is."

  5. #5
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    I still don't see it.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  6. #6
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Last edited by frenchfry164; 06-08-2002 at 12:31 PM.

  7. #7
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    here is my FPS code (I am using Allegro's timer handler)
    Code:
     prepare_next_frame(); // Prepare the next frame
     new_frames++;
     if (FPS_Counter > 0)
     {
      old_frames=new_frames;
      new_frames=0;
      FPS_Counter = 0;
     }
    It takes a second to warm it up. I would do the division thingy, but I forget the equation for that way. prepare_next_frame starts up the next frame, and when that's done, new_frames go up. There is a timer going, and when the timer gets to one second, it reads how many frames went through that second, then resets the timer and the frame counter. Now I know this won't give you accurate reading because of the counter code taking time.

  8. #8
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    try this code, include time.h and fstream.h when doing it:

    Code:
    int numFrames = 0;
    int startTime = clock();
    int finishTime;
    
    	while(1)
    	{	
                                    //the next 3 lines are pseudocode
                                    drawObjects();
                                    getUserInput();
                                    handleUserInput();
                                    //okay, back to real code
    		
    		numFrames++;
    		finishTime = clock();
    		if(finishTime >= startTime + 1000)
    		{
    			ofstream save ("fps.dat");
    			save << numFrames << endl;
    			save.close();
    			numFrames = 0;
    			startTime = finishTime;
    		}
    	}
    This will create a file called fps.dat and it will contain your frame rate.
    My Website

    "Circular logic is good because it is."

  9. #9
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Your method made it say 6 FPS, because in the beginning of the level it initializes stuff so the FPS is low for like 2 seconds, then it goes to full speed.

    PS: I got it up to 13 FPS! Yay!

  10. #10
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    It tells me I cannot download.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  11. #11
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    >in the beginning of the level it initializes stuff

    Initialize as much as you can before you do ANY drawing at all.

    Draw everything at once, dont draw spread out throughout the program. If a user presses the arrow key to move down....then just set a flag saying you need to draw the thing a pixel down the next time you draw, but dont actually draw it a pixel down at that moment....then when it comes around to draw time again, then draw it a pixel down.

    I dont understand why you are getting 13 fps. that is still slower than the human eye. revisit your drawing algorithms, you should not be getting that frame rate. think about it, it is taking almost 100 milliseconds to draw one frame of graphic.

    not to brag or anything, but my game that I am making is getting 73 fps....that is just 13.7 milliseconds per frame...something is wrong with your code somewhere if you are getting a reported 13 fps.....remember, you want at LEAST 16 fps....that is human eye speed....try for at least 25 fps....but it is good to have around 50....or more if you can...

    maybe you are reporting the amount of milliseconds it takes to draw a frame and not your actual frame rate...that might be a problem....but if you use the code i gave you, then you shouldnt be doing that....hmm...

    so either your algorithms are slow and you need optimization or you are placing your fps code in the wrong place.....

    if you're animation looks pretty smooth then you must be reporting frame rates wrong somehow, because at 13 fps it would look kinda choppy...

    oh, and i clicked on the link and i cant download it either..bad link..
    Last edited by DavidP; 06-08-2002 at 01:41 PM.
    My Website

    "Circular logic is good because it is."

  12. #12
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    wait a minute....

    what graphics mode are you working in?

    I remember awhile back ago doubleanti had some troubles in 112h and 11Bh (high res modes, like 1280x1024 modes with 32 bit color) with getting low frame rates....

    he would constantly get get around 13 to 15 fps or something around there....if you are working in one of those high res modes you might be having the same problem he did a long time ago....try asking him about it...
    My Website

    "Circular logic is good because it is."

  13. #13
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Try typing the link into the address bar (Tripod is mean like that)

    No, I'm running in 800x600x16 resolution using Allegro 4. The game doesn't look choppy at all, it may SEEM choppy, but it is just because of the animation (I made big pixel skipping, I think like 7 pixels, I'm going to shrink that back a bit). But the starfield is moving smoothly and everything.

  14. #14
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    I got 29 fps.........................hey ummmmm.......yeah now remembered.......there's no game play right? Because I couldn't kill none of the little enemies.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  15. #15
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    oh yeah 800*600 and 16 bits here, that's how I am running my computer right now.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sustring test puzzle
    By WDT in forum C# Programming
    Replies: 3
    Last Post: 06-29-2009, 07:19 AM
  2. Help needed to verify a new on-line C test
    By JanHruska in forum Projects and Job Recruitment
    Replies: 15
    Last Post: 06-20-2009, 06:48 AM
  3. Creating C/C++ Unit Test Cases
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 04-28-2009, 08:29 PM
  4. test this game guys
    By actionbasti in forum Game Programming
    Replies: 5
    Last Post: 12-05-2003, 03:05 PM
  5. dramatic decrease in fps
    By DavidP in forum Game Programming
    Replies: 4
    Last Post: 06-27-2002, 09:05 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21