[grits] Load tiles at a lower resolution



commit e3c32e852b06ab6e1cea08f4860f3c469bea9cde
Author: Andy Spencer <andy753421 gmail com>
Date:   Sat Feb 11 08:14:29 2012 +0000

    Load tiles at a lower resolution
    
    The updated FOV code causes tiles to get loaded sooner than they used to
    bee. While this may be "correct" it creates hard-to-read tiles because
    they're so small. It also increases memory usage..

 src/objects/grits-tile.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/objects/grits-tile.c b/src/objects/grits-tile.c
index 75ce3a0..f536c96 100644
--- a/src/objects/grits-tile.c
+++ b/src/objects/grits-tile.c
@@ -126,6 +126,7 @@ static gboolean _grits_tile_precise(GritsPoint *eye, GritsBounds *bounds,
 	 * (yet?) test if the tile would be drawn */
 	gdouble scale = eye->elev / min_dist;
 	view_res /= scale;
+	view_res *= 1.8;
 	//view_res /= 1.4; /* make it a little nicer, not sure why this is needed */
 	//g_message("tile=(%7.2f %7.2f %7.2f %7.2f) "
 	//          "eye=(%9.1f %9.1f %9.1f) "



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]