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.
Printable View
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.
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.
If you are using TransparentBlt, it causes HUGE memory leaks. Use a BitBlt combo instead.
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.
Zaei knows all about D3D, so if you narrow down the problem, he's the one to "call". ;)
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.
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...
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?
:rolleyes: