quote:
Originally posted by Zemat:
<STRONG>I have a performance problem with the new viewer. On the first try the viewer completely froze my browser (Firefox) for 30 seconds for every action I made like moving on the same level, changing level, or zooming. Then after some minutes it began doing things faster but still it takes like 5 seconds or so to complete any action.Any idea why this might be?</STRONG>
Hey Zemat, which map were you viewing? Did you zoom all the way out?
The biggest challenge with the new viewer was trying to manage the memory usage of flash so that it wouldn't crash lower end computers, like mine. Each layer is a huge, fully decompressed image. It hurts, it really does, and I'm abusing your processor as much as possible to rerender blocks as quickly as possible, but there needs to be a trade off between performance and memory usage.
The memory manager runs every 4 seconds, looping through all blocks, in all layers, to see what it can clear out. It is possible to go over the maximum number of blocks limit by switching up and down through the maps quickly, rendering more tiles then your computer can handle and quicker then the memory manager can clean them out.
At the moment, the maximum number of blocks is 2 x map width * map height... so that at least two full layers can be held in memory. On big maps, this is double what the old viewer would handle, and this may cause significant pain. However, the viewer has also been improved to -only- render the blocks that are visible, so, as long as you don't move around too much (say, only viewing the Points of Interest) you should find it nippy. I may, if more problems are reported, reduce the maximum number of block to 1 layer's worth at the cost of more re-rendering of tiles.
There are plans for an even newer version of the viewer that supports zoom-level caching, which will be much more memory efficient, but I don't know when I'll have time to implement it.
For now, please test your forts, and get back to me or SL with any problems! I think SL has done a sterling job with his compressor, its even easier to use then ever, and he's integrated my viewer in so you can preview maps offline.
Regards,
- Markavian http://mkv25.net/dfma/