PDA

Click to See Complete Forum and Search --> : fps is lowering with time


jsaiza
Mar 7th, 2002, 09:03 AM
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.

Zaei
Mar 7th, 2002, 01:22 PM
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.

Sastraxi
Mar 7th, 2002, 03:26 PM
If you are using TransparentBlt, it causes HUGE memory leaks. Use a BitBlt combo instead.

jsaiza
Mar 8th, 2002, 04:40 AM
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.

Sastraxi
Mar 8th, 2002, 07:31 AM
Zaei knows all about D3D, so if you narrow down the problem, he's the one to "call". ;)

Zaei
Mar 8th, 2002, 08:05 AM
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.

Arbiter
Mar 8th, 2002, 08:07 AM
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...

jsaiza
Mar 8th, 2002, 11:50 PM
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?

Arbiter
Mar 10th, 2002, 10:31 AM
:rolleyes: