Why animation can break even if oscilate between 60-90% CPU usage?

I made a simple animation.

Standalone player it is seamless, but in browser every few seconds it stops and jump even if through all the CPU time use never exceed 100%, but range between 60 and 90%.

I tested it on two machines, two dual core above 4 GHz and the result is the same.

Any ideas why and what it takes to fix?

Link: lucidwork.com/emma2/index2.php

Concerning

S.J.

This is an excerpt from a chapter (game performance optimization) of a book that I wrote (Flash game development: in a Social, Mobile and 3D world) and is intended to show that this is not necessarily a simple subject lends itself to a forum-fix.

Optimization techniques

Unfortunately, I don't know any way completely satisfactory to organize this information. In what follows, I discuss memory management first with sub-themes listed in alphabetical order. Then I discuss the management of CPU/GPU with subheadings listed in alphabetical order.

This may sound logical, but at least, there are two problems with this organization.

  1. I don't think it's the most useful way to organize this information.
  2. Memory management affects the CPU/GPU use, so that everything in the section of memory management can also be listed in the section CPU/GPU.

In any case, I'll also list information in two other ways, from the easiest to the most difficult to implement and more for much less.

Two of these later inscriptions are subjective and dependent on experience developer and capabilities, as well as environmental test and the test situation. I very much doubt there would be a consensus on the order of these lists.  However, I think that they are still valid.

Easier to the more difficult to implement

  1. Do not use filters.
  2. Always use the reverse for loops and avoid loops and avoid while loops.
  3. Explicitly stop timers for their loan for gc (garbage collection).
  4. Use weak event listeners and remove headphones.
  5. Strictly, type variable when possible.
  6. Disable explicitly interactivity mouse when interactivity smile not necessary.
  7. Replace dispatchEvents by the callback functions whenever possible.
  8. Stop sounds for the sounds and SoundChannels be gc would be.
  9. Use the most basic necessary DisplayObject.
  10. Always use cacheAsBitmap and cacheAsBitmapMatrix with air applications (i.e., mobile).
  11. Reuse objects whenever possible.
  12. Event.ENTER_FRAME loops: use different listeners and different listener functions applied to DisplayObjects as little as possible.
  13. The pool instead of creating objects and gc'ing.
  14. Use partial blitting.
  15. Use the blitting Stadium.
  16. Use Stage3D.

Biggest advantage less

  1. Use the blitting Stadium (if there is enough memory system).
  2. Use Stage3D.
  3. Use partial blitting.
  4. Use cacheAsBitmap and cacheAsBitmapMatrix with mobile devices.
  5. Disable explicitly interactivity mouse when interactivity smile not necessary.
  6. Do not use filters.
  7. Use the most basic necessary DisplayObject.
  8. Reuse objects whenever possible.
  9. Event.ENTER_FRAME loops: use different listeners and different listener functions applied to DisplayObjects as little as possible.
  10. Use reverse for loops and avoid the do loops and while loops.
  11. The pool instead of creating objects and gc'ing.
  12. Strictly, type variable when possible.
  13. Use weak event listeners and remove headphones.
  14. Replace dispatchEvents by the callback functions whenever possible.
  15. Explicitly stop timers on loan for the gc.

16 stop sounds for the sounds and SoundChannels be gc would be.

Tags: Adobe Animate

Similar Questions

  • Why did FireFox flash black and then cause a huge CPU usage and crash?

    I don't know if this has been asked before, but on Windows 7, FireFox will cause a high CPU usage and the black flash and then crash. No idea why? Acceleration is disabled for the options and flash.

    Would help if we could read your Crash reports.

    Please follow the steps below to provide us with crash IDs to help us learn more about your accident.

    1. Enter Subject: hangs in the Firefox address bar and press ENTER. A list of submitted Crash reports will appear, similar to the one shown below.
    2. Copy the 5 most recent report ID that begins with a bp - then go back to your forum question and paste the ID into the box of "Post a reply".

    Note: If a recent report ID does not begin with bp - click it to present the report.

    (Please do not take a screenshot of your plant, just copy and paste the ID.) The image below is just an example of what your Firefox screen should look like).

    More information and additional troubleshooting steps are in the article Firefox plant - troubleshoot and prevent assistance fixing crashes .

  • Hi, I can not paste the copied text of pages for Adobe applications, why is this? I have can´t even paste text in InDesign...

    Hi, I can not paste the copied text of pages for Adobe applications, why is this? I have can´t even paste text in InDesign...

    Duplicate thread: I can´t paste the copied text in any application adobe... InDesign, Photoshop, Prime Minister...

  • Why I can not put a veriable in attributes of animation?

    Hello

    I have a simple question, why I can't put variables in animations?

    <? XML version = "1.0" encoding = "utf-8"? >
    < s:Application width = "100%" height = "100%".
    ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" >

    < fx:Declarations >
    < s:Parallel id = "MoveRect_1ToRight" >
    "< s:Move xTo ="
    {MoveXto}"target ="{Rect_1}"duration ="8000"/ >"
    < / s:Parallel >

    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]

    public var MoveXto:Number =-(Rect_1.width-stage.width);

    []] >
    < / fx:Script >

    < s:Group id = "Rect_1" width = "3000" height = "800" red = "0" >
    < s:Rect width = '100 percent"height ="100% ">
    < s:fill >
    < s:LinearGradient >
    < s:GradientEntry color = "#e8db03" / >
    < s:GradientEntry color = "#153eec" / >
    < / s:LinearGradient >
    < / s:fill >
    < / s:Rect >
    < / s:Group >

    < s:Group id = "Rect_2" width = "80" high low "0" = "0" right = "0".
    rollOver = "MoveRect_1ToRight.play (); "rollOut ="MoveRect_1ToRight.pause (); ">
    < s:Rect width = '100 percent"height ="100% ">
    < s:fill > < s:SolidColor color = "#000000" alpha = "0.2" / > < / s:fill >
    < / s:Rect >
    < / s:Group >
    < / s:Application >

    Greetings

    zombiecook

    You need to calculate the value of MoveXto after the application is created, here, I use the creationComplete for example Manager (and I changed the stage for this), but you might also consider using the applicationComplete handler if you do not want a value non-zero stage.



    "xmlns:FX ="http://ns.adobe.com/mxml/2009"
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    creationComplete = "init ()" > "
       
       
           


               
           
       
       
       
            [Bindable] public var MoveXto:Number;

    private function init (): void {}
    MoveXto = - 1 * (Rect_1.width - this.width);
    }

    ]]>
       
       
       
           
               
                   
                       
                       
                   

               

           

       

       
       
    rollOver = "MoveRect_1ToRight.play (); "rollOut ="MoveRect_1ToRight.pause (); » >
           
               
           

       

  • Firefox blocks all https sites-, I can not even my Google mail!

    Firefox blocks all https sites, I can not even my Google mail - there is no option to bypass this blocking!

    Or, I can simply go to http://google.mail.com... I don't see ANYTHING in the settings to disregard certificates

    Firefox has gone downhill the way in many ways...

    Tittiger said

    I respectfully disagree with you about Firefox...

    The code of Firefox is so bad that I only use it as a last resort. Constantly, it crashes and has done this on several PCs in 2 or 3 years.

    In any case thanks for the suggestions, but it turned out malware that Panda deleted.

    If Firefox is a 'last resort', why you use it to check your emails? Do you use Google Chrome to access Google mail? I've never had problems with Firefox, then maybe I'm just lucky.

    Added the: Chrome and IE are coded by companies funded by programmers. Firefox is a program open source funded through donations to not-for-profit, which means that's what users are doing. If the 'bad code' is probably just different, not bad.

  • Why I can't connect?

    why I can't connect to my Skype account? even connect to this community. I tried 3 times to reset my password, but it didn't work... I can't even try reset it again because it's only 3 cases of changes. I can connect with different account with my mobile phone and moobile two. does anyone know what happens to my account?

    Problem solved by Skype customer

  • Can what comparison be made between time capsule and Smart RG s505 wireless modem router for wifi

    Can what comparison be made between time capsule and Smart RG s505 wireless modem router for wifi

    Superior...

    After all, the chip is mainly a modem.

    Wireless is there but not designed as the primary connection.

    Wireless 802.11n 300Mbps AP with 2 x 2 MIMO Wireless bridge, WDS multiple SSID, including isolated invited SSID WiFi QoS (WMM) and PowerSave wireless security: • Wi - Fi Protected Access (WPA, WPA2) • AES, TKIP, WEP encryptio

    It is the Wireless N standard.

    The TC is dual-band simultaneous AC1750... even if in fact apple never leaves anything use 300mbit on the 2.4 GHz is more like AC1450... It is also 3 streams on both bands not 2 x 2.

    The fact that aid.

    The only thing to note is that a router from Apple can join never a router wireless not apple... so, there must always be plugged in by ethernet.

  • will not let me run the updates so I can't even install norton

    loaded the only windows service pack for xp one, I had. but now won't let me run the updates so I can't even install norton. He says I need service pack 2 at least, but can no longer update this do I?

    I could ask why you are not being updated at least SP3, but I guess that's another story.

    Release notes for Windows XP Service Pack 3
    http://support.Microsoft.com/kb/936929

    The space of hard disk required for Windows XP Service Pack 3
    http://support.Microsoft.com/kb/947311

    Steps to take before you install Windows XP Service Pack 3
    http://support.Microsoft.com/kb/950717

    How to troubleshoot an installation fails on Windows XP Service Pack 3
    http://support.Microsoft.com/kb/950718

    Some third-party programs can make a change in functionality after you install Windows XP Service Pack 3
    http://support.Microsoft.com/kb/947309

    How to obtain the latest Windows XP service pack
    http://support.Microsoft.com/kb/322389

    Windows XP Service Pack 3 - file to Image CD ISO-9660:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=2FCDE6CE-B5FB-4488-8C50-FE22559D164E&displaylang=en

    Windows XP Service Pack 3 for developers network installation Package and the professionals (unique facilities for the PC can use the same file)
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5B33B5A8-5E76-401F-BE08-1E1555D4F3D4&displaylang=en

  • Why I can not activate my norton antivirus 2009.

    Why I can not activate my norton antivirus 2009, even though I am connected to the internet. Please someone respond to me within 15 days.

    NortonAantivirus 2009 is an old product and probably now obsolete.  Plan to install the excellent anf FREE Microsoft Security Essentials instead.

  • How can I move/copy data between desktop Vista user?

    Hello

    My home computer has 3 users, 2 personnel and an administrative one system.  [How] can I copy or move files between desktop ordinary user without login again as a system administrator? As a regular user, that I can't even see the jobs of the other user.

    Thank you.

    I think I've cracked it.  I had to abandon my personal account admin rights and of course a password to protect these rights.

  • Why I can't get Roxio Easy Media Creator 7 to install under Windows 7?

    I was wondering if someone could tell me why I can't get Roxio Easy Media Creator 7 to install in Windows 7? It worked fine under XP. I even installed on Vista, despite the warnings, it worked fine. Help, please.

    I'm sorry, but Easy Media Creator 7 is not compatible with Windows 7 - it does not appear on the page of Windows 7 Support and compatibility with Roxio products Roxio.  From this page:

    "Some products may not install correctly and limited functionality - even if the product looks installs successfully." Note that Roxio won't provide any support for the installed products on Windows 7 that are not Compatible Windows 7. »
    Boulder computer Maven
    Most Microsoft Valuable Professional

  • Why you can not run portable applications on RT?

    Why you can not run portable applications on RT?

    Nothing is installed on the system. That's all, flash USB, a folder or drive.
    You don't have to install anything. So why can not run portable applications on RT?

    I know exactly what is a portable application. It requires no additional drivers installed or libraries to run on a system, if one is required that they are either built into the executable and extracted the runtime or are included in the same location as the executable and are referenced from this location.

    No portable application is not somehow the operating system to display the current status, error messages or generate logs for its operation. If it cannot accept input during its operation or generate a form of output it has no function. This is the basic description of a program to have one or the other or both.

    When you double-click an executable file is Windows (if it's the operating system) giving you the ability to open its location, see the executable file in order to select and issue the command to run. It's Windows that then loads this program in memory to run. If necessary, Windows that displays the dialog box to provide any input and display results or error messages generated by the program. If the result is a log file that it is Windows that allows access to the drive to create the file and the result is an error state in Windows that stores the status of the error, then it can be interpreted by another program. If the output is to change the status of the computer in a way, it's Windows that gives access to this device or component. The Hardware Abstraction Layer allows access to the hardware itself if necessary by a program and even that is a part of Windows.

    So I know what a laptop program is, more important still, I also know what is Windows.

  • Why I can't use the nested aggregate function?

    Hello Experts,

    Why I can't use the nested aggregate function? There is not an ora-00979 group by error of expression.

    Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

    Select

       SUM (BOX WHEN (KSD_CREATEDATE BETWEEN TRUNC((KSD_CREATEDATE)) AND TRUNC(MIN(KSD_CREATEDATE)) +60) THEN 1  ELSE 0 END) AS col

    DE TABLE_3_4

    GROUP BY STC_FIRMANO

    Thank you

    GROUP BY will manage the SUM function, but the MIN is used incorrectly - use another SELECTION to get it, or work with only with a single line. Otherwise, you could do WITH... get the SUM of SELECT MIN...

  • Why I can't run my Lightroom 6 (not CC) after that I use it only once? After a reboot (7 Wi\ndows), I can only use and closr LR once. This is after I did a recent update.

    After a reboot (Windows 7) I can only use my Lightroom 6 (not CC) once. It will not start again. This happened after I did an update. I can not even find the program id in my Windows Explorer. Al; so, I visit the Web site and see that I have a license for the program, but it can not load again. Why not?

    I have experienced the same problem and advice from Adobe fixes it-

    If Lightroom remains present in the task manager then try this procedure.

    Procedure-

    1. Make a restart/re-start computer
    2. Open Lightroom
    3. Open the Task Manager. (CTRL + ALT + DELETE)
    4. Right click on the App - Adobe Photoshop Lightroom-
    5. Select "see details" «
    6. Right click on "Lightroom.exe.
    7. Click on "set priority".
    8. Set the priority to 'high'.
    9. Close the Task Manager.
    10. Close all programs and restart the computer
    11. While you open Lightroom - reset the preferences by pressing [SHIFT + ALT].
    12. LR control closes correctly.
  • Why I can't write spfile?

    Hi all

    11.2.0.1

    Our database of PROD works 24 x 7 and if you ask for downtime only recently.

    For example, I need to change our database for logging operating system. If your update of init.ora or spfile must be precise and quick.

    Can you explian why I can not update online my spfile, so that I can bounce back quickly instead of edit a pfile?

    What I did:

    C:\Users > sqlplus / as sysdba

    SQL * more: Production release 11.2.0.1.0 Thu Nov 28 18:40:41 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.


    Connect to an instance is idle.

    SQL > startup

    ORA-01821: date format not recognized

    SQL > pfile =' start d:\initorcl.ora ';

    ORACLE instance started.

    Total System Global Area 535662592 bytes

    Bytes of size 1375792 fixed

    318767568 variable size bytes

    209715200 of database buffers bytes

    Redo buffers 5804032 bytes

    Mounted database.

    Open database.


    SQL > create spfile from pfile = 'd:\initorcl.ora';

    Created file.

    SQL > alter system set audit_file_dest = 'local0.info';

    "ALTER system set audit_file_dest ='local0.info"

    *

    ERROR on line 1:

    ORA-02096: specified initialization parameter is not editable with this

    option

    SQL > alter system set audit_file_dest = 'local0.info' scope = spfile;

    ALTER system set audit_file_dest = 'local0.info' scope = spfile

    *

    ERROR on line 1:

    ORA-32001: write to SPFILE requested but no SPFILE is in use

    So I need to bounce the database, so I can write my spfile?

    Thank you

    Petra k.

    If you cannot dynamically update the spfile, all the dynamic parameters can be changed online even if you use a file pfile (range = memory). But of course, the pfile file must be modified accordingly to preserve changes made after the next startup.

    The static parameters must rebound by the db in any case.

    Nicolas.

Maybe you are looking for