Results 1 to 7 of 7

Thread: Sometimes fast - sometimes slow ?!

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    17

    Sometimes fast - sometimes slow ?!

    Hi!
    I'm working on an project.

    Well - it's working. But sometimes it's very slow everything and there are blur effects where I never had programed someone (as if the Windows is resized with 1 pixel). Then are some textures completly white.
    If I quit mIRC (a chat program) on my PC - it's working without problems.

    Well - ok - I could quit it everytime - But sometimes it works even with mIRC running at the same time. On other PCs it works always slow (with the same textures in white) or completly fast.

    And I guess there are not too much textures or so on because it's a little 2D game and there aren't so much. In 3D games it would be more.

    (Sorry about my english )

  2. #2
    Member Contributor
    Join Date
    Jul 2003
    Location
    va beach
    Posts
    63

    Re: Sometimes fast - sometimes slow ?!

    I could be wrong and probly am but it sounds to me like memory is not bieng used correctly.

    What operating system do you use?

    how much ram?

    how much video?

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    17

    Re: Sometimes fast - sometimes slow ?!

    hmm win2k, only 256 mb ddr and 32mb graphics.

    Well - I don't know how to free textures when I don't need them. Only using the free() function wouldn't be enought I guess.

    or how to free an OpenGL project if I leave it.

    [This message has been edited by ProfEich (edited 08-06-2003).]

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jun 2002
    Posts
    365

    Re: Sometimes fast - sometimes slow ?!

    Originally posted by ProfEich:
    Well - I don't know how to free textures when I don't need them.
    Textures are released by using <a href="http://www.3dlabs.com/support/developer/GLmanpages/gldeletetextures.htm" target="_blank">glDeleteTextures
    </a>

    Regarding "speed", check so you always use a hardware accelerated pixel format. If glGetString(GL_VENDOR) is microsoft than you're not hw accelerated. The easiest way to do this is to make sure your desktop color depth is 32bit.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Apr 2003
    Location
    Toulouse, France
    Posts
    133

    Re: Sometimes fast - sometimes slow ?!

    weird things like the ones you describe are usualy due to incorrect memory read/write.

  6. #6
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    23

    Re: Sometimes fast - sometimes slow ?!

    You may be aware of this, but fps drops due to computation time also come like steep ledges. If your program normally runs at 60fps, but your compilation time is very near being greater than (1/60)of a second, if it goes to (3/120)of a second, your fps will drop to 30. This is something to keep in mind, though, it may not be the trouble in this case. Like they said, make sure you are unloading your textures and image data. But just be aware of this too.

  7. #7
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    17

    Re: Sometimes fast - sometimes slow ?!

    well. Now I use glDeleteTexture to unload them. But it doesn't helped.

    It is at the first run always fast (16ms per frame) and from the second run on always slow (160ms per frame).

    And there aren't so much textures so I guess it's a bit extreme from 16ms to 160ms oO"

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. 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
  3. OpenGL - Fast or slow?
    By in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 02-27-2001, 05:30 PM
  4. Why do demos run fast/slow on different machines?
    By RobertSI in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-14-2000, 01:22 PM
  5. Can a fast CPU make up for a slow grafix card?
    By drbuzzo in forum OpenGL: User Software
    Replies: 1
    Last Post: 04-10-2000, 02:08 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