re-enabling my terrain renderer line optimization
This commit is contained in:
@@ -67,8 +67,8 @@ namespace OpenRa.Game.Graphics
|
||||
|
||||
int visibleRows = (int)(region.Size.Y / 24.0f + 2);
|
||||
|
||||
int firstRow = 0;// (int)( ( region.Position.Y + viewport.Location.Y ) / 24.0f );
|
||||
int lastRow = 128;// firstRow + visibleRows;
|
||||
int firstRow = (int)((region.Position.Y + viewport.Location.Y) / 24.0f - map.YOffset);
|
||||
int lastRow = firstRow + visibleRows;
|
||||
|
||||
if (lastRow < 0 || firstRow > map.Height)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user