Hi,
ich habe grade meine erste Tour unter Nutzung von Scenes fertig gestellt. Local auf dem eigenen Rechner ging alles gewohnt schnell. Nachdem ich das aber geuploadet habe und testen wollte, ist mir aufgefallen, dass die Ladezeit extrem hoch geht.
Es dauert mehrere Sekunden bis das preview des ersten Panos geladen wird. Einen freund nen Link gegeben, der hat 16k DSL und dennoch hats 5-6 Sekunden gebraucht eh überhaupt was angezeigt wurde. Das ist ja mittlerweile tödlich, solange wartet ja heutzutage keiner mehr. Lädt man hingegen das "StartPanorama" allein, dann geht es bedeutend schneller.
Nun stellt sich mir die Frage:
Woran liegt das?
- Kann es sein, das das einbinden von XML-Dateien über include-Url alles andere als günstig ist? Sollte man vielleicht auch wenn dadurch die übersichtlichkeit flöten geht, jede XML-Datei in die eine finale Tour-XML kopieren? scheinbar wird erstmal überprüft, ob die dateien überhaupt da sind.... schön und gut, aber scheinbar extrem inperformant.
- Werden eventuell auch die anderen Preview-Stripes vorgeladen?
Hier mal der Quellcode der Tour:
<krpano version="1.0.8" onstart="action(start);">
<include url="skin/defaultskin.xml" />
<!-- change the default textstyle for showtext: -->
<textstyle name="DEFAULT"
font="Arial" fontsize="14"
border="false" background="false"
textcolor="0xFFFFFF"
effect="glow(0x000000,0.7,4,2);dropshadow(4,45,0x000000,4,1);"
/>
<textstyle name="smalltext"
font="Arial" fontsize="10"
border="false" background="false"
textcolor="0xFFFFFF"
effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"
/>
<textstyle name="infostyle"
origin="top" edge="top" yoffset="100" textalign="center"
background="false"
border="false" fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="6.0" fadetime="1.0" />
<plugin name="map" url="tff_plan.png" keep="true"
align="leftbottom" x="-20" y="3" alpha="0.95" handcursor="false"
scalechildren="true"
width="503"
height="500"
onclick="action(closemap);"
/>
<plugin name="arlomap" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="200" y="83" zorder="2" onhover="showtext(Heidecksburg - Arlo Guthrie);" onclick="loadscene(arlo, null, MERGE, BLEND(1));" />
und 25 weitere gleichartige Mappoints
<!-- combobox plugin -->
<plugin name="box" url="plugins/combobox.swf" preload="true"
keep="true"
align="leftbottom" x="20" y="20" width="400"
blendmode="layer"
/>
<action name="start">
<!-- load 1. scene on start -->
loadscene(arlo, null, MERGE);
plugin[box].addIdItem(1, 'Heidecksburg - Rotfront', loadscene(rotfront, null, KEEPDISPLAY, BLEND(1)); );
+ 25 gleichartige Items
</action>
<!-- activated hotpot -->
<plugin name="activespot" url="mappointactive.png" keep="true" align="center" edge="center" visible="false" zorder="3" />
<!-- radar plugin, set heading with "plugin[radar].heading" -->
<plugin name="radar"
url="plugins/radar.swf"
zorder="1"
keep="true"
heading="0"
parent="map"
align="lefttop"
edge="center"
x="0" y="0"
linecolor="0"
fillcolor="0xFF0000"
scale="0.1"
visible="false"
/>
<!-- actions -->
<action name="closemap">
set(onclick,action(openmap););
tween(width,64,distance(503,0.5),easeoutquad);
tween(height,63,distance(500,0.5),easeoutquad);
tween(x,20,distance(200,0.5),easeoutquad);
tween(y,40,distance(40,0.5),easeoutquad);
wait();
set(onhover,showtext(Karte öffnen););
</action>
<action name="openmap">
set(onclick,action(closemap););
tween(width,503,distance(503,0.5),easeoutquad);
tween(height,500,distance(500,0.5),easeoutquad);
tween(x,-20,distance(100,0.5),easeoutquad);
tween(y,3,distance(40,0.5),easeoutquad);
set(onhover,null);
</action>
<!-- activatespot action,
- this action has two arguments:
- %1 = the current spot
- %2 = the current radar heading
-->
<action name="activatespot">
set(plugin[activespot].parent, plugin[%1]);
set(plugin[activespot].visible, true);
copy(plugin[radar].x, plugin[%1].x);
copy(plugin[radar].y, plugin[%1].y);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
<!-- Szenen -->
<!-- first scene/pano -->
<scene name="arlo" onstart="action(startscene);">
<action name="startscene">
plugin[box].selectIdItem(2);
action(activatespot,arlomap, 180);
showtext([b][i]tff2010 - Heidecksburg - Arlo Guthrie & Thüringer Sinfoniker[/i][/b], infostyle);
</action>
<!-- place here scene local elements like plugins,hotspots, ... -->
<include url="../tff2010_heidecksburg2/heidecksburg2_sphere.xml" />
</scene>
+ weitere 25 gleichartige szenen...
Alles anzeigen
oder ist da etwas inperformantes drin?
ISt das normal, dass diese Art der Tourerstellung unter diesen tödlichen Nachteil leidet?
Danke für eine Antwort!