Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are some performance tips for Flash?

Flash PERFORMANCE tips
0
Posted

What are some performance tips for Flash?

0

In Flash 10 you have many options if you are bound by code performance. First, make sure you are avoiding Dynamic and untyped{} where performance is critical; the JIT uses type information to speed things up. Second, you have the choice between Vector, List, and FastList as alternatives to Array(which is usually the slowest option). If you install ListTools, you may also use the list class included there, which is again optimized in another way from the other List classes. If you are instancing lots of objects in a short period of time, pre-instancing them and maintaining an object pool that pulls them in and out as necessary is preferred by Flash’s memory management system. Finally, you may use the flash Memory API, which lets you allocate a chunk of memory as a ByteArray and access its bytes directly. If rendering is slow(it is considerably slower outside of the Windows player), avoid alpha transparency and usage of advanced DisplayObject features(rotation, scaling, 3D, filters). Pre

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.