romanhoehne Posted December 31, 2003 Posted December 31, 2003 Hi all, what is the fastest way to display Bitmaps using csharp and directx9? I use _primary.Draw(destination, MapTile(j,i), new Rectangle(0,0,32,32), Microsoft.DirectX.DirectDraw.DrawFlags.Wait, new DrawEffects() ) ; for the map and _primary.Draw(destination, _theSurfaces[0], DrawFlags.Wait | DrawFlags.KeySource) ; for a field what ist moving over the map. Has somebody other ways to do it? Ciao, Roman Quote
wyrd Posted December 31, 2003 Posted December 31, 2003 DrawFast, and use the do not wait flag. Quote Gamer extraordinaire. Programmer wannabe.
AndreRyan Posted January 1, 2004 Posted January 1, 2004 You're not using a Backbuffer, you should use a backbuffer, then when you finish drawing everything you Draw/Flip it to the primary surface Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.