# HG changeset patch # User Alys Brooks # Date 2022-01-12 05:46:07 # Node ID 7b5c9fe565b841af8a1a08197a58056949ffae07 # Parent d097c0d7d2e6e79f9b8cb8ad74986b38c778334a Remove cull() check. This speeds up drawing tiles by a factor of roughly 2, lol. When drawing a 200x200 map, drawing tiles goes from taking 24ms to 12ms. diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -565,8 +565,8 @@ int screenx = (x - y) * Tile.TileSpriteWidth / 2; int screeny = (x + y) * Tile.TileSpriteHeight / 2; - if (this.cull(x, y)) - { + // if (this.cull(x, y)) + // { batch.Draw( Tile.TileSetTexture, new Rectangle( @@ -581,7 +581,7 @@ 0.9f); this.tilesDrawn++; - } + // } } } stopWatch2.Stop();