Re: [Libosmscout-development] GDI drawing Performance Under Windows
Library for OpenStreetMap offline rendering and routing
Status: Beta
Brought to you by:
tteuling
From: Tim <ti...@fr...> - 2021-12-30 16:25:46
|
Hello David, > Well I was talking about the generic MapPaint library. > > Every DrawArea/DrawWay loops for all areas/ways available. I think they > don't have any relationship between them so the loop can me split in the > computer processors to speed things up. Also GDI itself could be speed > up as Tim says. Note also that there is an inherent order in the things drawn. You draw ways on to of areas, and labels on top of all of them. Also ways have an (partial) order, thing of tunnels and bridges. There are still situations where parallel operations are possible, but not all stacks would support it (it depends where and how state is handled) and the question is, how much it improves rendering time. Not also that subtle changes to the actual rendering order on every render iteration during some zoom or pinch operation will make the map jump or cripple or similar. We spend some work to make sure that labels are stable rendered in such cases ;-) I'm in favor of experiments, but before big changes there should be a measurement that quantifies the possible improvement. -- Gruß... Tim |