Details

I have just converted my WPS to use viewports for every line due to the lack of right margins, to make setting out easier and to allow for the possibility of different fonts without affecting the position of the text.

One thing i have noticed (and I'm not surprised) is that using viewports makes things slower - metadata takes longer to display (with more disk access needed) and album art is included in this delay. This might be another bug associated with ViewPorts doing too much (or an optimisation issue), but I'm not sure.

The main problem i have noticed is that sections of my album art sometimes disappear, especially when i lock the device, insert a USB cable (before rockbox reboots), or the disk access icon pops up.

These sections missing line up (y-value) with viewports to the right of the album art (I haven't tried to the left), and the missing section is usually the height of one of the viewport it is lining up with. Sometimes, the missing section is that between two viewports (with the height of the missing section being that between the two viewports).

While this is occurring, the viewport lining up with the missing section disappears too.

Attached are screendumps and my wps file.

Please note that i have intentionally blurred sections of the screendump because i am not ready to release my WPS (if ever).
I have also edited out the WPS to make it easier to read (it is still functional...except for the bug)

1) why do you think viewports affects disk access and metadata loading?
2) I'm not certain, but it looks like your issue with disappearing lines is because the main viewport is sort of broken in svn... please try your wps with a build including FS#9027.

1) The info for the songs and the album art takes longer to load (with more disk access) than the same WPS without viewports.
2) I do not know how to build with patches. Perhaps you can test it, however

I guess it depends on whether or not *everything* is supposed to be in a viewport. If it's expected that everything has its own viewport, then it's not really a hack to put album art in its own. But if it isn't, then it's a bug. I've personally gotten in the habit of putting everything inside its own viewport, including album art and any loaded & displayed images.

the only difference ebtween the build i gave and svn is that it doesnt have the optional params... you dont need to change anything else... I'll put up another build in a while afgter i resync that patch

strange...the top only cut off once ever. Maybe it isn't because of the other viewport.

What i did realise, however, is that the text in the middle disappears whether there is album art or not (ever since declaring album art in a separate viewport)
I don't think it was like this when album art was declared in the main viewport.

"I don't think it was like this when album art was declared in the main viewport."

Whether album art has been declared or not, i still get an error here! The problem may be more deep then initially thought.
Perhaps after a certain number of viewports/specific order/specific sizing something messes up, causing one (or more?) to behave improperly