Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 97529

Re: 'JSFL script running for a long time' - how do i stop this

$
0
0

Hi.

 

This is probably happening because you're trying to export a very complex project. Meaning lots of complex vector artworks, lots of bitmaps are being generated, lots of shape tweens, and motion tweens. Also these bitmaps may have huge dimensions.

 

Here are some perfomance tips that you should be aware of:

 

- Try testing your file with and without exporting the document as texture (Publish Settings > JavaScript/HTML > Image Settings > Export document as texture);

- Consider turning off the advanced layers mode (Ctrl/Cmd + J) if you don't need advanced features like camera or parenting because this mode has some impact on performance;

- Avoid complex containers with lots of children;

- Avoid complex shapes;

- Make sure you're not using color effects/filters;

- Use cache whenever possible;

- Avoid using large bitmaps. This is specially true for mobile devices;

- Try low resolution values for exported bitmaps (Publish Settings > JavaScript/HTML > Image Settings > Resolution);

- Try to balance wisely when an asset should be made of a vector shape or of a bitmap;

- Avoid using too many static text fields because they are exported as raw vector shapes;

- Avoid adding too many listeners;

- Add mouse events to a container and use the event.target property instead of adding a separate mouse event to dozens or hundreds of children;

- If possible set a container.tickChildren to false so the tick will not be propagated to children of a container;

- If using a tick event it may be a good idea to change the Ticker.timingMode and see which one works best for your case;

- Avoid using motion tweens because they are exported as frame by frame animation;

- Avoid having a huge main timeline with lots of tweens;

- Avoing very large shape tween spans.

 

Also, is it possible for you to update to the latest release of Animate CC? It may help.

 

Here is a screenshot of a complex project I worked this year that I used to get similiar errors like yours very frequently. The errors only went away when I optimized all FLAs.

 

animate_cc_html5_canvas_script_running_for_a_long_time_error.png

 

 

Regards,

JC


Viewing all articles
Browse latest Browse all 97529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>