Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E1EDD6D9 for ; Sat, 1 Sep 2012 03:24:54 +0000 (UTC) Received: (qmail 96944 invoked by uid 500); 1 Sep 2012 03:24:53 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 96596 invoked by uid 500); 1 Sep 2012 03:24:50 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 96557 invoked by uid 99); 1 Sep 2012 03:24:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 03:24:48 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aharui@adobe.com designates 64.18.1.27 as permitted sender) Received: from [64.18.1.27] (HELO exprod6og111.obsmtp.com) (64.18.1.27) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 03:24:40 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob111.postini.com ([64.18.5.12]) with SMTP ID DSNKUEF/41msscQZFNh/03XRn5J9UGHxYL+X@postini.com; Fri, 31 Aug 2012 20:24:20 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q813OIP7010064 for ; Fri, 31 Aug 2012 20:24:18 -0700 (PDT) Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q813MfYt025690 for ; Fri, 31 Aug 2012 20:24:18 -0700 (PDT) Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by nahub01.corp.adobe.com ([10.8.189.97]) with mapi; Fri, 31 Aug 2012 20:23:31 -0700 From: Alex Harui To: "flex-dev@incubator.apache.org" Date: Fri, 31 Aug 2012 20:23:30 -0700 Subject: Re: Cross-compiling Flex to HTML5/Javascript (Was : Update on Falcon donation) Thread-Topic: Cross-compiling Flex to HTML5/Javascript (Was : Update on Falcon donation) Thread-Index: Ac2H2LnKgSj0W8ydQHu3IPzuaL6ZfQAGG63w Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-Entourage/13.11.0.110726 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On 8/31/12 5:27 PM, "jude" wrote: >> At one point, I prototyped a new LayoutManager that gave lower priority = to >> things that were not on the display list. The idea was you could then >> start >> pre-baking your next screen "in the background" so it would be ready to = go. >> Sure there would be situations where you could get surprised and not hav= e >> the right screen baked and you probably wouldn't want to bake everything= , >> but the idea was to make LayoutManager do a better job of not interferin= g >> with the frame rate. >>=20 >=20 > Do you remember how much difference it made? No, I don't have any good numbers. It would depend on how much stuff is being created and validated. > I think in most cases that > would be alleviate a lot of the issues. Also, not sure if it's possible b= ut > maybe it could determine if an item is outside of the visible application > rectangle and set lower priority on those items (esp if size is explicitl= y > set) as well. If you start working on this let me know. >=20 > I went back and ran some more tests and the FPS during animations is soli= d > (120fps). So there's something else going on. Maybe it's the graphics car= d. > I'm not sure how to describe what I'm seeing but it reminds me of when I > was writing a drag manager back in the day (AS2) and you dragged a sprite > across the stage. It didn't look great but it wasn't clear what was > different than normal (and the FPS were still reporting the same numbers)= . > Then I used event.updateAfterEvent() on each mouse move event and it was > the difference was astounding. What was going on there and could the same > thing be happening here? Mouse and Timer events do not automatically force a redraw of the screen at the end of all code responding to the event. When dragging, mouse events can be occurring at a rate much higher than the frame rate, especially when the frame rate is 24fps or so. It is possible that in timer-driven animations, nobody is calling updateAfterEvent and the timer is firing faster than the regular frame rate= . I think in mobile apps the player is currently throttling timers to the frame rate. I've wanted to play with blends and velocity to see if it can smooth out animations at lower frame rates, but that is not very high on my list. --=20 Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui