[Golist] hydrotween + go vs tweener
Moses Gunesch
moses at goasap.org
Fri Jun 6 07:59:08 PDT 2008
Romuald,
ENTER_FRAME (-1) will give you the smoothest results in real-world
interactive code such as your demo file.
I don't recommend using a setting of 1, which is smooth but can easily
back up the player by overclocking it. Your screen and the human eye
work best at around 24-30 FPS so, just set your movie to one of those
framerates and use enterframe. That allows the player to refresh
animation as it is naturally refreshing its redraws, which is far more
efficient than running thousands of calculations that are never even
seen.
Sorry about the confusion with the previous 33ms default, and thanks
for helping us figure out that it was flawed. It is true that that
setting runs faster in benchmarks but it may be because it "staggers"
player processes; however it apparently also causes animation to
hiccup in real world settings.
Please bookmark the Go docs home page: http://www.goasap.org/docs/
Get comfy with referencing docs for questions like, what is a
constant's value, that's just faster for you and others than posting
such a question. But I am to blame for causing confusion on the
default pulse, which went from -1 originally, to 33ms for a while, and
now is back at -1. Sorry bout that but again thanks for your valuable
input! :-)
- moses
On Jun 6, 2008, at 10:28 AM, donovan at hydrotik.com wrote:
> -1 is for setting to ENTER_FRAME
>
> Any positive integer will set it to Timer based with millesecond
> values
>
>
> On 6/6/08 7:09 AM, "Romuald Quantin" <romuald at thoughtomatic.co.uk>
> wrote:
>
>> Hi Everyone,
>>
>> First of all, thanks Donovan and Moses to have a look at this issue.
>>
>> It is now working well as Hydrotween and OverlapMonitor have been
>> updated (VERSION: HydroTween 0.4.9 rev32 (DA/MG REWRITE) / Go 0.4.9)
>>
>> As written in the SVN log:
>> GoItem.defaultPulseInterval has been set back to ENTER_FRAME.
>> While 33ms does perform faster on benchmarks with thousands of
>> animations, ENTER_FRAME runs much smoother in practical contexts.
>>
>> Just to understand…
>>
>> Donovan told me to set the pulseInterval in Hydrotween to 1, and
>> the result is a lot smoother.
>>
>> The default pulseInterval value is -1, what does this value mean? I
>> understood well it is ms, so set to -1 bypass it to use another
>> value? maybe a frame-based value? or maybe -1 means the pulse will
>> be 33ms as describe in the SVN log?
>>
>> Romu
>>
>>
>>
>> From: golist-bounces at goasap.org [mailto:golist-bounces at goasap.org]
>> On Behalf Of Romuald Quantin
>> Sent: 29 May 2008 15:06
>> To: GoList at goasap.org
>> Subject: [Golist] hydrotween + go vs tweener
>>
>> Hi Guys,
>>
>> I made a small test (file included). I’ve already posted it but
>> nobody answered, I renew my test with the last version of Tweener,
>> Go and Hydrotween.
>>
>> I’m working on a project and it will use a tweener for the
>> animations, I won’t get stuck with a package, the users will be
>> able to register the tweener they want to use, probably TweenLite,
>> Tweener and Go+Hydrotween.
>>
>> To be honest, after seeing the benchmarks and the features, I would
>> like to mainly use Go, but here’s my problem.
>>
>> I made a test to compare the reactivity of the different package.
>> Using Hydrotween and Tweener I animate a simple plane and a picture
>> with rollover and rollout, I change the properties brightness,
>> scale and rotate.
>>
>> Test it by opening the index.html, if you rollover the sprites,
>> both will work as expected, but if you rollover and rollout very
>> quickly several times to test the “reactivity of the engine”, I can
>> see that the Tweener one is a lot smoother…
>>
>> Here are the questions:
>>
>> 1 - Am I doing something wrong in my test?
>> 2 - Can you see what I mean when I say Tweener is smoother?
>> 3 - Is the problem coming from my test?
>> 4 - Is the problem coming from Go?
>> 5 - Is the problem coming from Hydrotween?
>> 6 - Is the problem coming from the easing equation?
>> 7 - is Hydrotween or Go parsing a big array or something that might
>> make it less smooth when the engine start again the tween?
>> 8 - Can I (or we) solve it?
>>
>> I don’t want to shadow Go+Hydrotween at all, I’d like even to use
>> it full time but I’ve got to get a good result… Can you please tell
>> me what you think of that and if there’s a solution or if you’re
>> going to have a look?
>>
>> Thanks for your time.
>>
>> Romuald
>> www.soundstep.com <http://www.soundstep.com/>
>>
>>
>> _______________________________________________
>> GoList mailing list
>> GoList at goasap.org
>> http://goasap.org/mailman/listinfo/golist_goasap.org
>
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080606/b55d3c21/attachment.html
More information about the GoList
mailing list