[Tilesathome] Inkscape crashes under win32 and renderstripes
Milenko
milenko at king-nerd.com
Fri Oct 24 14:49:24 BST 2008
Excellent info - thanks. I'll set renderstripes=4 and see how it goes. I
misunderstood exactly how the striping was done.
-Jeremy
-----Original Message-----
From: tilesathome-bounces at openstreetmap.org
[mailto:tilesathome-bounces at openstreetmap.org] On Behalf Of Matthias Julius
Sent: Friday, October 24, 2008 9:11 AM
To: tilesathome at openstreetmap.org
Subject: Re: [Tilesathome] Inkscape crashes under win32 and renderstripes
"Milenko" <milenko at king-nerd.com> writes:
> ----- Original Message -----
> From: "Matthias Julius" <lists at julius-net.net>
> To: <tilesathome at openstreetmap.org>
> Sent: Thursday, October 23, 2008 9:26 PM
> Subject: Re: [Tilesathome] Inkscape crashes under win32 and renderstripes
>
>> "Milenko" <milenko at king-nerd.com> writes:
>>
>>> Is this an inkscape problem? Or is it to blame on windows? I've
>>> tried using renderstripes=5 in tilesathome.conf, and it seemed to help
>>> some but not as much as I expected. As I understand it, renderstripes
>>> at 5 will split layer 17 into 4 stripes and render them all
>>> seperately, thus reducing memory usage to a quarter of what it would
>>> be to render the layer as a whole. Is this correct?
>>
>> Yes, but I doubt Inkscape's memory usage correlates in that way with
>> the PNG size. After all, it still has to evaluate the whole SVG. But
>> the stripes are a quater of the whole z17 PNG and thus the same size
>> as the z16 PNG.
>>
>>> If so, would it be possible to increase the number of stripes to
>>> further reduce memory usage?
>>
>> Yes, try RenderStripes=4
>
> I'll try that, but doesn't that mean that the client will starting
striping
> at 16 instead of 17? Will it decrease the memory usage?
Yes, it will cut z16 into 4 stripes and z17 into 16 stripes. This
results in stripes for z16 and z17 that have the same size (in number
of pixels) as the whole z15 area. Remember that in a tileset based on
z12 (256 x 256 pixels) the area for z17 is 8192 x 8192 pixels, the
area for z16 is 4096 x 4096 pixels and the area for z15 is 2048 x 2048
pixels. With RenderStripes=4 the z16 stripes will be 4096 x 1024 and
the z17 stripes will be 8192 x 512 pixels.
The idea behind this was that if you see Inkscape crashing at z16 for
example you et RenderStripes=4 and all stripes of higher zoom levels
will have the same size as the complete z15 area. Of course, since
the stripes can not be narrower than the tile size (256 pixels) z17
will be cut into max. 32 stripes.
If Inkscape is still crashes with z16 stripes you might need to reduce
MaxtilesetComplexity.
Matthias
_______________________________________________
Tilesathome mailing list
Tilesathome at openstreetmap.org
http://lists.openstreetmap.org/listinfo/tilesathome
More information about the Tilesathome
mailing list