News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

r2376 - PaxDest on miniumap is too heavy

Started by z9999, March 10, 2009, 05:03:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

r2376
This is not a bug report. But PaxDest on miniumap is too heavy. Vehicles skip.
Is there any chance to speed up ?

prissi

THis is not finalized yet. MInimap will be accelerated anyway, since it is also too heavy on large maps.

gerw

#2
This patch will speed up the minimap with PaxDest.

Edit: Added patch ;)

Edit2: Maybe we could put this new code in an function add_pax_dests() and also call this in calc_map? Then we don't need to query the sparse matrix in calc_map_pixel.

prissi

The map only needs to redraw the visible area anyway. This would speed up the map dramatically for large maps. And the sparse matrix mean, that we could save actually the whole map, imho ...

Every town asking the map for every passengers is imho much more work than the map is doing. I will add you patch.