[Laszlo-dev] Constraints, dependencies, and LzEventable
henry.minsky at gmail.com
Wed Apr 7 13:43:38 PDT 2010
> The question is: when you constrain to function that does not have a
>> dependencies method, should you get a warning (because you might wonder why
>> your constraint does not update) or should it silently succeed (because that
>> is what happens in swf8 and DHTML right now)?
> It seems like you might want to be able to constraint to arbitrary
> functions and have the event system default to lz.Idle.onidle as a
> dependency. There should still be a warning in debug mode, so folks know to
> update this for efficiency.
> Wow, so the constraint would update unconditionally each frame?
I don't know if that is just too much magic. I would not have thought of
that as an option, because of the potential performance hit, but if it's
just a couple of cases where the user does that, it's an
interesting idea. We could have either a warning for each in debug mode, or
else maybe a debug "analyze performance" command that
lists all of the onidle constraints or something. Or else the debug warning
could tell the user that the object cannot be constrained to, and give them
a suggestion of example code to manually use to use onidle to update the
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Laszlo-dev