VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Speed Problems Jack Hoxley (4 replies, 0 views) (2000-Jun-19) This isn't exactly a problem; but I was wondering If someone could shed some light on this for me:
I've written a C++ DLL; although nothing special, it was running quite quickly - a 640x480 screen array in 20ms
I've been testing it in VB, and I wrote a tutorial based on it for my page. The original intention was to use it along with GetLockedArray in DirectDraw surfaces...... To do fast pixel-level FX.
I then sorted this out; set up GetLockedArray, used the DLL, and it now takes 100-300ms each pass. 5-15x Slower. What the hell? Why'd it do that? No change when it's compiled either.
Is there something about DirectX that I'm missing - I dont think so. The array returned by GetLockedArray should be the same as any other array, right?
Any body got any ideas?
|