Try Flash 8! You'll get much better performance in general.
It would be also interesting to try using an LzTimer with a delegate
which moves the background a little bit each step. That's not the
laszlorific way to do it, but it might help.
-ben
On Dec 6, 2005, at 12:46 AM, Mo wrote:
hoi,
i started to make a small sidescroll shooter and was wondering how
to decrease the cpu load. here is an example, it's just a simple
vector graphic as background:
http://mo.virtual-bunker.de/sidescroll.lzx.swf
even this simple example eats about 40% of the cpu time on my
computer (athlon64 3000+). i already tried it with only a pure
LzView with nothing on it, but same effect. also no difference
between swf6 and swf7 - does anyone have a suggestion what i am
doing wrong?
here is the code for this example:
<canvas width="600" height="300" proxied="false">
<view name="background" width="1200" height="300" x="0" y="0">
<view name="pic1" resource="simplespace.swf"
x="0" width="600" height="300" stretches="both">
<animator attribute="x" from="0" to="-600" start="true"
duration="20000" motion="linear" repeat="Infinity" />
</view>
<view name="pic2" resource="simplespace.swf"
x="600" width="600" height="300" stretches="both">
<animator attribute="x" from="600" to="0" start="true"
duration="20000" motion="linear" repeat="Infinity" />
</view>
</view>
</canvas>
greetings & thanks,
mo
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user