lunedì 6 dicembre 2010

Overcomplicating...

Hi all,
i finally understood why i am making no progress on the dynamic map. It always looks like i am there, but i am not. The reason is: i am overcomplicating everything!

So, today will be devoted to simplify, simplify...

Stay tuned...

Update: i got rid of QThreads everywhere, i got rid of MapCacheManager (what for, actually? moved just two members to LayerMap, the rest discarded as useless)...
Also, fixed WaitDialog to work without threads!

Update: its working! Both the nice progress dialog AND the LayerMap loading stuff.. Now trying on the phone!... Its working even here! The problem is caching speed... Its unbeliable SLOW!

But i had an idea:
1) Cache the entire image for one zoom level in one go
2) really remove all cache stuff from paintUncalibrated, schedule instead to reload outside paintevent...

Last update for today: i am working on quite a rewrite a ImageJpeg, to make the interfaces more effective and logical. WorkerPrecacheMap is benefitting from this, and while it does not work yet, it will be HUGELY faster.

At the same time, this rewrite requires a rewrite in the paintUnalibrated. Now it will be mandatory to move all the data fetching (and possibly cache rebuild) outside the paint event, which is by the way the logical thing to do anyway.

I will be AWAY until sunday, so no new posts for a bit...

ciao!

Nessun commento:

Posta un commento