How going faster with Bitmaps?

romanhoehne

Newcomer
Joined
Dec 23, 2003
Messages
8
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
 
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
 
Back
Top