Results 1 to 9 of 9

Thread: fps is lowering with time

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    8

    fps is lowering with time

    Hi,
    I'm working with VB6, DirectX8.1 and Windows Me. After 5 or 10 minutes of stable rendering (around 55 fps) the speed lowers to 20 or lower Any idea?
    Thank you.

  2. #2
    Zaei
    Guest
    You may be leaking a small amount of memory somewhere. Take a good look over your code, and of course, see what causes the problem to occur.

    Z.

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    If you are using TransparentBlt, it causes HUGE memory leaks. Use a BitBlt combo instead.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    8
    I'm using DirectX8.1 blending textures.
    Memory leak sounds very well as the cause of this problem, but I've tried to check the memory using GlobalMemoryStatus and .GetAvailableTextureMem calls without getting any useful information (maybe my Voodoo5 doesn't report correctly).
    I've read about memory leak when you don't set to nothing a texture is no needed any more, but in my case I use a small amount of textures all the time and set them when needed. I'd like to know what others sources of memory leaks could exit, it would be good for checking.
    Thank you.

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Zaei knows all about D3D, so if you narrow down the problem, he's the one to "call".
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Zaei
    Guest
    Before quitting, call SetTexture with ByVal 0 for the texture to remove the one being used from memory, for each of the textures you are blending, that may be the problem.

    Z.

  7. #7
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    Check your call stack and make sure that procedures are ending before new ones start.

    You might have a rolling window of 10 procedures being called - happened to me once...
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

  8. #8

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    8
    Hi,
    I've discovered that if I take away doevents instrution the program runs again fast, but callback call can not be produced. So I have to use ctrl-alt-sup to abort the execution of the program. Could it be something related with some parte of the operating system paying too much attetion to keyboard or sound card?

  9. #9
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width