]> Pileus Git - grits/commitdiff
Load tiles at a lower resolution
authorAndy Spencer <andy753421@gmail.com>
Sat, 11 Feb 2012 08:14:29 +0000 (08:14 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 12 Feb 2012 07:00:20 +0000 (07:00 +0000)
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

index 75ce3a02ff5201f4d51778bc2754437c8b09d139..f536c96d496fd99d4f04cfbafdaf668f8745db59 100644 (file)
@@ -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) "