|
-
Mar 7th, 2002, 10:03 AM
#1
Thread Starter
New Member
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.
-
Mar 7th, 2002, 02:22 PM
#2
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.
-
Mar 7th, 2002, 04:26 PM
#3
Good Ol' Platypus
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)
-
Mar 8th, 2002, 05:40 AM
#4
Thread Starter
New Member
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.
-
Mar 8th, 2002, 08:31 AM
#5
Good Ol' Platypus
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)
-
Mar 8th, 2002, 09:05 AM
#6
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.
-
Mar 8th, 2002, 09:07 AM
#7
PowerPoster
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...
-
Mar 9th, 2002, 12:50 AM
#8
Thread Starter
New Member
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?
-
Mar 10th, 2002, 11:31 AM
#9
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|