Re: Moving TimelineEngineThread into Toolkit specific code

  • From: Kirill Grouchnikov <kirillcool@yahoo.com>
  • To: dev@trident.kenai.com
  • Subject: Re: Moving TimelineEngineThread into Toolkit specific code
  • Date: Tue, 23 Jun 2009 09:08:51 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=OsD6gHHEr3ytqOarH3D9idOUUjVgb7ywUDz4nHjJkfA24l1CdrUUyuIVHUYqSMA5SyELKqA3JWHh3eJIXmdmssQasUNBEZmM0spBeIJWK5ls3i6VYt2zA4ztJu0WNGbmm1e3Ej/gJYrwOMtPjOzCamYRkUXroXlCFbaZB694xQU=;

Hi Paul

One idea that i'm thinking over for post-1.0 release is to provide an API to change the "pulse source" for the main Trident thread. Right now it has a hard-coded sleep period, but i would like to have the applications able to control that.

While support for UI toolkits is an important part of the library, i don't think that the thread creation belongs as an API in the UIToolkitHandler interface. An application can mix UI components from different libraries, or not have the UI at all.

The way i see it, Trident will provide an abstract thread class that will have a (tentatively named) waitUntilNextPulse() method. The core implementation will continue using Thread.sleep(40), while custom application code will create its own extension class and implement that method. Is this something that will be easy to integrate with your frame cycle manager?

Thanks
Kirill


From: Paul Byrne <Paul.Byrne@Sun.COM>
To: dev@trident.kenai.com
Sent: Tuesday, June 23, 2009 8:52:27 AM
Subject: Moving TimelineEngineThread into Toolkit specific code


Hi Kirill,

One thing we do in Wonderland which is a little different from other UI toolkits is to control the systems framerate explicitly. This helps with responsiveness on slower system and preserves resources on higher powered systems. As a result it's more efficient to trigger animation updates on a frame cycle rather than a timer (or timed sleep).  On principal how would you feel moving the TimelineEngineThread into the toolkit specific code ?

I'm just bouncing around ideas at the moment, not formally requesting a change :-)

Rgds

Paul



Moving TimelineEngineThread into Toolkit specific code

Paul Byrne 06/23/2009

Re: Moving TimelineEngineThread into Toolkit specific code

Kirill Grouchnikov 06/23/2009

Re: Moving TimelineEngineThread into Toolkit specific code

Paul Byrne 06/23/2009
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close