Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HUGE optimization
#1
Anybody ever notice something? Big Grin

The ground layer will draw, even if it's not set. To fix this, simply find where it's drawing:

Code:
Call DD_BltFast(MapTilePosition(X, Y).PosX, MapTilePosition(X, Y).PosY, DDS_Tile.Surface, MapTilePosition(X, Y).Ground, DDBLTFAST_WAIT)

And replace it with this:

Code:
If Map.Tile(X, Y).Ground > 0 Then
        Call DD_BltFast(MapTilePosition(X, Y).PosX, MapTilePosition(X, Y).PosY, DDS_Tile.Surface, MapTilePosition(X, Y).Ground, DDBLTFAST_WAIT)
    End If

My FPS went from 200 to nearly 500.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)