I wrote a complete menu (including scrolling chapter menu with rotating images) in pure markup. The XMU file has in total about 1500 lines. Unfortunately I notice that it runs quite slow on HDiSim and in Players.
Are 1500 lines too much for xmu
I wrote a complete menu (including scrolling chapter menu with rotating images) in pure markup. The XMU file has in total about 1500 lines. Unfortunately I notice that it runs quite slow on HDiSim and in Players.
Are 1500 lines too much for xmu
Markup Performance
Musafir
Fyrus
1500 lines should be OK, some released titles have more than twice.
Although, performance may vary depending on content.
Reese Bird
Vijay Guru Prasadh
It will depend on how complex your XPath queries are, how complicated the layout is, etc.
"Number-of-lines" is never a good metric for gauging the complexity of something... especially since you could put it all 1500 lines on a single line :-)
If you have real perf concerns, you can send me the page (and any other assets it needs to run) and I can take a look... no promises of amazing perf savings though; some things are just better done by script (or by breaking your content out into multiple pages).
Scott Boyd
Can you please elaborate why the above improves performance.
In my understanding , both options as presented should have same performance.
thanks
AlfonsAberg
Also, the load time increases exponentially with the addition of divs at the top level of your body and cues in your timing blocks.
ie,
<par>
<cue/>
<cue/>
<cue/>
</par>
<par>
<cue/>
<cue/>
<cue/>
</par>
<par>
<cue/>
<cue/>
<cue/>
</par>
<par>
<cue/>
<cue/>
<cue/>
</par>
is better than...
<par>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
<cue/>
</par>
and
<body>
<div style:position="absolute" style:x="0px" style:y="0px" style:height="1080px" style:width="1920px">
<div/>
<div/>
<div/>
<div/>
</div>
<div style:position="absolute" style:x="0px" style:y="0px" style:height="1080px" style:width="1920px">
<div/>
<div/>
<div/>
<div/>
</div>
<div style:position="absolute" style:x="0px" style:y="0px" style:height="1080px" style:width="1920px">
<div/>
<div/>
<div/>
<div/>
</div>
</body>
is better than
<body>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
<div/>
</body>
Michael J Brown
Meanwhile I found the reason for my markup being so slow.
Wasn't the 1500 lines. It were just two little <style select="//button" ...> statements ;-)
I fixed it and now it looks very fluent and nice.