background preloader

Performance

Facebook Twitter

ActionScript Workers Tutorial « JacksonDunstan.com. ActionScript workers add threading to AS3 so that you can take advantage of today’s multi-core CPUs.

ActionScript Workers Tutorial « JacksonDunstan.com

I’ve written a couple of articles about them so far, but skipped over the basics of actually setting them up and using them. AS3 Concurrency/Workers use cases, best practices, and link roundup. Leif Wells responded to my presentation slides on ActionScript 3 Workers/Concurrency with a great question: Is there a discussion somewhere on practical use cases for AS3 Workers?

AS3 Concurrency/Workers use cases, best practices, and link roundup

Best Practices? (Leif Wells on Twitter) Use cases I talked some about practical use cases in my presentation. Text/data processing (e.g. the example I gave in the slides of loading an xml file and looping over all the nodes to create an object graph)visual/image/audio data processing (e.g. any image processing algorithm that isn’t already using PixelBender) – some examples are in the links belowPhysics engine running in the background Best practices. FlasCC. FlasCC and Link Time Optimization The FlasCC toolchain is closely modeled after a typical native C/C++ development toolchain.

FlasCC

It contains all of the tools you would expect from such a toolchain, including a compiler (with preprocesser), an assembler, a linker, an nm symbol lister, an ar archiver, etc. Continue reading… FlasCC 1.0.1 Released FlasCC 1.0.1 has been released containing fixes for some commonly experienced bugs. Porting a C++/OpenGL game to run in the browser The Flash C++ Compiler (FlasCC) was designed to allow C/C++ developers to deliver existing C/C++ codebases via a web browser using the Flash Player. Using printf within a SWC A SWF built with gcc/g++ using the -emit-swf option has a default Console that prints stdout into a TextField on the screen (and to the Flash log file). Troubleshooting Error #1065 This post explains why you might see error #1065 when creating a SWF or SWC in FlasCC. Sample C++ libraries running in the browser via Flash Player. Ten tips for building better Adobe AIR applications > Tutorials.

Now that we have just launched AIR 2, I figured it would be a good time to look back at all the AIR code I've written over the last few months and pick out some of the best snippets and concepts to share with the community.

Ten tips for building better Adobe AIR applications > Tutorials

This article describes ten techniques I've used to improve performance, usability, and security of AIR applications, and to make the development process faster and easier. Now that we have just launched AIR 2, I figured it would be a good time to look back at all the AIR code I've written over the last few months and pick out some of the best snippets and concepts to share with the community.

This article describes ten techniques I've used to improve performance, usability, and security of AIR applications, and to make the development process faster and easier: Requirements. Moving your Flex Components from MXML to ActionScript 3 - InsideRIA. Types in AS3: ints not so fast, uints slow!

Posted on June 15, 2006 by Grant Skinner UPDATE: These findings are not relevant in more recent versions of the player.

Types in AS3: ints not so fast, uints slow!

Please see this article for more recent results, and to run the tests for yourself. Sho just posted a really interested article on why he won’t be using the int data type very frequently in ActionScript 3. Up until reading it, I had believed that as in other languages, there were large performance benefits to using ints and uints appropriately in AS3. Video: Event Performance in Flex. Event Performance in Flex, the next episode in the gripping and suspenseful series CodeDependent, is now available from Adobe TV.

Video: Event Performance in Flex

This episode covers the use of the updateAfterEvent() function to get better rendering performance for time-sensitve operations like mouse-interaction visuals and animations. By default, changes to the graphics that the Flash player displays happen at the frame rate of the player (by default, 24 frames per second). This frame rate, which updates the screen every ~42 milliseconds, is fine for most visual changes on the screen. ILOG Elixir Blog. As we all know, a wide variety of factors impact the performance of Flex applications, just as for any software.

ILOG Elixir Blog

Some factors are under programmer's control, such as the architecture, design and implementation choices. Decreasing startup time of a Flex 4 application using virtualiza. I've spent several days presenting the new Flex 4 features for many of our enterprise clients. As it's simple to understand, most of the time is dedicated to the brand-new Flex 4 List based components. Spark List-based components bring a lot of new topics to consider when developing Flex 4 applications: the DataGroup container, virtualization, the dropdown list, custom item rendere and more. One cool thing about DataGroup is that it supports virtual layouts. As each time I show this topic I get many questions, I've promised myself to write some posts to explain what a virtual layout is.

DataGroup container replaces Repeater container. Virtual layouts allows you to create only objects that need to be shown onscreen and to recycle item renders. For allowing a DataGroup to recycle item renderers there are 3 requirements that must match: 1. the useVirtualLayout property set to "true" 2. at least an itemRenderer specified and none itemRendererFunction used: