whao i was just adding text. some B's to my tiles to tell its blocked. guess what... it slowed down like hell
has anyone noticed this to?

this is my code:

VB Code:
  1. Do Until L > LayerMax
  2.         If Not Layers.cLayer(L).Value = vbUnchecked Then
  3.             Let xTemp = xZ
  4.             Let yTemp = yZ
  5.            
  6.             Let X = 0
  7.             Do Until X > Map.Width
  8.                 Let xDest = xTemp
  9.                 Let yDest = yTemp
  10.                
  11.                 Let Y = 0
  12.                 Do Until Y > Map.Height
  13.                     If Map.TileX(L, X, Y) > -1 And Map.TileY(L, X, Y) > -1 Then
  14.                         Let rTile.Left = Map.TileX(L, X, Y) * TileWidth
  15.                         Let rTile.Top = Map.TileY(L, X, Y) * TileHeight
  16.                         Let rTile.Right = rTile.Left + TileWidth
  17.                         Let rTile.Bottom = rTile.Top + TileHeight
  18.                        
  19.                         Call BufferSurface.BltFast(xDest, yDest, GroundTiles, rTile, DDBLTFAST_DONOTWAIT Or DDBLTFAST_SRCCOLORKEY)
  20.                     End If
  21.                    
  22.                     If Map.Blocked(L, X, Y) Then
  23.                         [COLOR=Blue][B]Call BufferSurface.DrawText(xDest + TileHalfWidth, yDest, "B", False)[/B][/COLOR]
  24.                     End If
  25.                    
  26.                     Let xDest = xDest - TileHalfWidth
  27.                     Let yDest = yDest + TileHalfHeight
  28.                    
  29.                     Let Y = Y + 1
  30.                 Loop
  31.                
  32.                 Let xTemp = xTemp + TileHalfWidth
  33.                 Let yTemp = yTemp + TileHalfHeight
  34.                
  35.                 Let X = X + 1
  36.             Loop
  37.         End If
  38.        
  39.         Let L = L + 1
  40.     Loop