Results 1 to 5 of 5

Thread: Why do demos run fast/slow on different machines?

  1. #1
    Member Contributor
    Join Date
    Apr 2000
    Location
    Staten Island New York
    Posts
    53

    Why do demos run fast/slow on different machines?

    Can anyone tell me why some demos perform slower or faster on different machines, operating systems and different graphic cards.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: Why do demos run fast/slow on different machines?

    Many factors :

    Video Card is one. New game can make old card crawl because they don't have enough memory, enough bandwith, enough fill rate.

    Card Drivers : with each new version of a driver, a company usually optimises some functions, fixes some bugs that make can some software run much faster than another.

    Ram : More is not Enough!!!!! With more ram, you minimize hard disk swap wich saves a lot of time.
    Also, Enough FREE ram. Some people have a lot of ram but have so many background softwaresthat they fill half their ram and haven't done anything yet!When the system tray(lower right of your screen) fills 3/4 of your screen, it is not good.

    CPU : Obviously.

    And there could other things that I've forgot.

  3. #3
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: Why do demos run fast/slow on different machines?

    operating systems play a part. Win98 can be a tad poor at times, when compared to NT, irix or unix.

  4. #4
    Member Contributor
    Join Date
    Apr 2000
    Location
    Staten Island New York
    Posts
    53

    Re: Why do demos run fast/slow on different machines?

    OK, but right off the bat with enough ram, a good video card, etc. what would be your first impression or opinion if the demo ran too fast?

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: Why do demos run fast/slow on different machines?

    If demo ran too fast that means your computer is fast. To make your demo runs at a decent speed you need to use timers to make sure the demo runs at the intended speed.

    One way to do that is to calculate movement using the time it took to render the last frame.

    So let's say you have something on your screen that your want moving 5 units in 1 seconds, then if it took 0.1 seconds to draw the last frame the movement for the next frame is 0.1 * 5 = 0.5 units.

    You can use simple window timer, but they doesn't return at fixed intervals. It depends how fill is your message queue.

    For better precision, you can use the performance Counter. It is a very precise hardware cpu. You need to use two win32 calls to work with it.

    QueryPerformanceFrequency
    QueryPerformanceCounter

    Not sure if they are both written correctly.

    Look at http://msdn.microsoft.com/default.asp to learn more about these functions

Similar Threads

  1. First time fast, other times slow!!!
    By tdchen in forum OpenCL
    Replies: 1
    Last Post: 12-19-2018, 04:22 AM
  2. Painfully slow 3D - Gerbera demos (Nokia 7610)
    By pablitoheras in forum OpenGL ES
    Replies: 2
    Last Post: 11-08-2004, 05:09 AM
  3. Sometimes fast - sometimes slow ?!
    By ProfEich in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 08-11-2003, 08:05 AM
  4. Togl graphics fast on Linux, slow on NT
    By NTtogl in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-03-2002, 12:54 PM
  5. OpenGL - Fast or slow?
    By in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 02-27-2001, 05:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean