Page 1 of 1

Simple animator oversleeps in Preview

Posted: Sat Dec 27, 2014 6:46 am
by rrTea
If you start the example below (with F9, or as an exe), you'll see the square changing colors as expected. But if started inside the preview, it takes some 5 seconds before anything starts happening.

Code: Select all

<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" NoSound="1">
  <OnUpdate>
    <AnimatorSimple Duration="0.5" AutoStart="255" Target="MonoColor.Color.G" RepeatCount="-1" ToValue="1" Smooth="255"/>
  </OnUpdate>
  <OnRender>
    <UseMaterial Material="MonoColor"/>
    <RenderSprite/>
  </OnRender>
  <Content>
    <Material Name="MonoColor" Color="0.0548 0.9042 1 1"/>
  </Content>
</ZApplication>
Edit: Tested it on my other (Windows 7) computer and there it sometimes works without delay.

Posted: Sat Dec 27, 2014 8:44 pm
by VilleK
This was a bug. It is fixed now and updated in the latest beta. Thanks for reporting the problem.