This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

What is minimum time taken for rendering a single tile without any tile cache or prerendering from tile server?

0

I have implemented a tile server. But I haven't build any tile cache yet. For the very first time when I open a tile in browser, it took around 53seconds to load for a single tile(256*256, zoom level 1, openstreetmap carto style ).

My question is - Is this time taken normal? or Should I look into my Postgres configuration to further minimize the time. And Is there any minimum time for tile loading(without any prerender or cache) that can be achieved using postgres tuning?

asked 30 Jul '18, 21:49

anuranpal's gravatar image

anuranpal
21101215
accept rate: 0%

edited 30 Jul '18, 22:02

What zoom level and what stylesheet?

(30 Jul '18, 21:53) SomeoneElse ♦

zoom level one. openstreet carto style

(30 Jul '18, 21:55) anuranpal

One Answer:

2

This is strongly dependent on the zoom level we are talking about.

Fastest rendering would be in "high" zoomlevels like 18 or 19:

> time render_single_tile.py s osm.xml -o out.png -u /19/274383/180030.png real 0m11.298s user 0m1.152s sys 0m0.316s

If you give me an exact tile URL I can check how long it takes on my tileserver.

In case you wonder where to get render_single_tile.py have a look at

https://github.com/giggls/openstreetmap-carto-de/blob/master/scripts/render_single_tile.py

answered 03 Aug '18, 15:29

giggls's gravatar image

giggls
12613
accept rate: 50%

Thank you so much for your help :-) @giggls

(11 Aug '18, 05:39) anuranpal

Source code available on GitHub .