Re: [Libosmscout-development] GDI drawing Performance Under Windows
Library for OpenStreetMap offline rendering and routing
Status: Beta
Brought to you by:
tteuling
From: David H. R. <dav...@gm...> - 2022-01-01 13:03:25
|
Hello, As I supposed the amount of news-deletes makes the GDI version Sooooo slow. I have changed the DrawAreas method to calculate the máximun coords an Area can have each Invalidate and things have sped up considerably. I'll change also DrawWays in the same way and It will fly. Happy new year for all. Regards On Fri, 31 Dec 2021 at 12:04, David Huelves Ramos <dav...@gm...> wrote: > Hello > > DrawPath is still slow as It's a huge loop where each step needs to create > and destroy an array of points. This Array can be created first and never > deleted between all drawpath process if we keep the max space needed for > the longest Way. > And we manage the array with an index each time. > > Let's see what can I do :O > > > > > On Fri, 31 Dec 2021 at 11:19, Tim Teulings <ti...@fr...> wrote: > >> Hello David, >> >> > There is also a bug in the m_Data member. As it is an array but delete >> > is not deleting the array just the pointer, leaving leaks each addpoint >> > I'll write back the modifications I made. >> >> Thanks for taking a more in deep look than me (my Development Setup >> under Windows is currently limited). >> >> Of course we will accept any patch in result of your findings :-) So do >> not hesitate :-) >> >> -- >> Gruß... >> Tim >> >> >> >> _______________________________________________ >> Libosmscout-development mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libosmscout-development >> > |