
07-27-2005, 08:26 AM
|
Junior Contributor
|
|
Join Date: May 2002
Posts: 366
|
|
DirectDraw 7 TileEngine using .Lock
I was looking into ways of optimizing my tile engine to get better FPS. My idea is to lock my backbuffer and my tileset and copying tiles one at the time while keeping both surfaces lock which from my understanding whould save time. If possible I could even use CopyMemory to copy the tile from my tileset to the backbuffer. Wouldn't this be MUCH faster then using a loop of .bltfast for the tiles since your not lock and unlocking the surfaces so many times and skiping all the overhead of DirectDraw's BltFast?
|
|