Krisc |
Posted - Feb 14 2005 : 7:36:36 PM Is fullscreen clipping possible with DirectX9? If so...how? I can't seem to get it to work! |
Lachlan87 |
Posted - Feb 16 2005 : 7:17:35 PM I'm actually interested in what 2dcoder was using---I figured you were using MDX since you said DX 9. If 2dcoder was using Managed DirectX, what he said about bltFast would be good to keep in mind. I probably ought to do a test myself instead of bugging him for the details, but I'm lazy. |
Krisc |
Posted - Feb 16 2005 : 6:10:24 PM I am. And I am actually using C# however I know VB well enough to translate. :P |
Lachlan87 |
Posted - Feb 16 2005 : 06:53:23 AM . . . Are you using Managed DirectDraw or DirectDraw 7? People sometimes assume they're the same.
Here's a little quote from Tom Miller's Book: (He was on the development team for MDX) quote: When the calls to Draw and DrawFast are hardware accelerated (which is most likely the case in any modern graphics card), there is no difference between these two calls. However, if there is a case where the methods are called using software, the DrawFast method will be approximately 10% faster than the Draw method.
Now, even with all that said, I'm willing to allow that you could still be right---but are you using Managed DirectX? |
2dcoder |
Posted - Feb 16 2005 : 05:31:00 AM Actually drawfast is alot faster. I've tested it on several machines from low end to high end and I always get more sprites on the screen with the same frame rate. It is WELL worth your time to implement your own clipping routine and use the .BltFast function. It will really pay off when you start doing multi layered tile maps, dozens or hundreds of sprites, etc. |
Lachlan87 |
Posted - Feb 15 2005 : 3:36:47 PM Yup. Don't sweat it too much though. . . Drawfast is only faster on non-hardware accelerated machines. |
Krisc |
Posted - Feb 15 2005 : 2:13:12 PM I got it to work however. Apparently DrawFast does not work with clipping. |
Krisc |
Posted - Feb 15 2005 : 2:06:32 PM Sorry. Forgot to mention this is with DirectDraw |
Lachlan87 |
Posted - Feb 15 2005 : 07:18:21 AM Do you just mean the ability to have sprites move off the screen instead of dissapearing when they touch the edge? Because I use the Sprite object bulit into Direct3D, and that happens automatically. |