The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on March 10, 2009, 05:03:33 AM

Title: r2376 - PaxDest on miniumap is too heavy
Post by: z9999 on March 10, 2009, 05:03:33 AM
r2376
This is not a bug report. But PaxDest on miniumap is too heavy. Vehicles skip.
Is there any chance to speed up ?
Title: Re: r2376 - PaxDest on miniumap is too heavy
Post by: prissi on March 10, 2009, 11:35:23 AM
THis is not finalized yet. MInimap will be accelerated anyway, since it is also too heavy on large maps.
Title: Re: r2376 - PaxDest on miniumap is too heavy
Post by: gerw on March 16, 2009, 01:01:08 PM
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.
Title: Re: r2376 - PaxDest on miniumap is too heavy
Post by: prissi on March 16, 2009, 10:53:20 PM
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.