ActionScript 3.0 :: Improving The Rendering Performance

Apr 26, 2011

rendering performance when scrolling some content. I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy. I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event. The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.

Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite? (Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Flash Improving The Rendering Performance?

Apr 26, 2011

I am working on a large project and I would like some advices about improving the rendering performance when scrolling some content.I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy.

I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event.The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.

Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite ?(Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)

View 6 Replies

Performance :: Optimization - Improving Performance With Large #'s Of Objects

Jan 11, 2011

I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.

I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.

I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?

View 1 Replies

ActionScript 1/2 :: Improving Performance With Overlapping MCs?

Oct 29, 2009

I'm having some performance issues in certain areas of a flash game Im making.
 
Here's the situation: I have big movieclip containing a map that can be scrolled and scaled. There are some pannels with a bunch of MC buttons, controls, etc. on the right side of the stage. These are seperate from the map and stay in the same place.
 
Everything runs fine untill the large map is  zoomed in and/or scrolled such that the right side buttons and stuff are overlapping them map. Then the framerate jumps down from a nice smooth 30 fps to about 3 fps while the map is moving. There are no issues with the map moving when they don't overlap.
 
Now the thing is, is that's there's no real interaction between the buttons and the map. No transparency or anything, in fact I'm perfectly happy with the map dissapearing behind a side pannel. There are only about 3 pannels that the screen drawing routine would have to worry about, as all the buttons rest on top of the pannels, so why is my performance taking such a hit?
 
(Hmmm. Actually I do have a lot of transparency, but each is on top of a solid background, and none interact with the map.)

View 8 Replies

Actionscript 3 : :Improving Slow Performance Of Drawing Application Using BitmapData.draw()?

May 27, 2011

I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:

public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....

Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.

I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.

View 2 Replies

Flash - Major Performance Hitters Aside From Rendering Vectors?

Dec 5, 2011

In Actionscript 3, you quickly learn that using vector graphics is a guaranteed way to inflict massive damage to the performance of your project. Using a combination of Bitmap, its bitmapData property and its copyPixels() method in place of all vector graphics will yield a ridiculous performance boost and is essential for people like myself developing games within Flash. Beyond this I'm not really sure what the next major things that I should be targeting and attempting to optimize are.

I do use a lot of the inbuilt trigonometry functions, but they don't seem to affect it all that much. I know there are some libraries that optimize mathematics with some approximation methods and similar, but so far I haven't found these necessary. Are there any other massive known points I should be looking at? I'm more referring to the inbuilt things that I should be careful of (like avoiding vector rendering) rather than how to improve my own coding style.

View 1 Replies

Performance :: Measure Flex/Java App Response And Rendering Time?

Sep 19, 2011

We have Flex/Java app with a typical scenario:

Clicking the button
Preparing request
Sending request to the backend
Receiving a response from the backend
Rendering the response

How can I measure time from the start of step 1 to end of step 5?

View 1 Replies

Performance :: Performance - Hold MouseDown To Increase Speed/power?

Sep 12, 2011

this is what i'm trying to accomplish; With a click on a movieclip (cannon_mc)a shot is being fired (ball_mc)

The longer mouse is down, the speed of wich the ball is fired with should increase.My question to you is;

What is the most efficient way to accomplish this? With a timer or something like this;

[Code]...

View 2 Replies

Performance :: Flex - Using Nested ViewStacks Cause Performance To Decrease?

Nov 4, 2011

Will I take a big hit in performance using nested ViewStacks? Should I strive to handle all navigation in one ViewStack and push children manually or will the affected performance be negligible?

eg.
<viewstack>
<tabnavigator />
<tabnavigator />
<tabnavigator />
</viewstack>

View 2 Replies

Performance :: Improve Flex Performance For Invisible Views?

Mar 19, 2012

We have a medium size Flex 3.6 application that contains around 20 different page views (managed via a single lazy ViewStack) each having multiple components. Most use custom renderers.All model data is loaded at startup and changes to model instances are communicated via binding and/or collection change events.Once the user has viewed each page at least once, all page views are instantiated and happily listen to update events.Which in effect means that each time a model instance changes, all interested views receive that event and compute derived data or trigger item-renderers.I have tested and confirmed this behaviour in a proof-of-concept application. Even when setting a list to being invisible, it still listens to collection change events and invalidates any renderer affected.What would you do?

View 1 Replies

Improving Flash Slideshow?

Aug 12, 2009

So I have made a basic slideshow on flash for a website. Nice but simple, 3 images fading in and out. But I want to make a slideshow that moves either vertically or horizontally, but most likely at an angle. I also want some text to either fade in or move as well. So I have a few questions.1) What is the best way to get th pictures to move at an angle? I have read some xml options for editing in dreamweaver, can't seem to find one for moving the picture.I would imagine you have to edit it in flash? Yes I'm new to flash!2) I take it you edit the text in flash, could it be dynamic text and what is the best way to move it?

View 4 Replies

ActionScript 3.0 :: Improving Workflow With The Drawing API?

Nov 12, 2009

I'm used to the drawing tools within CS3/CS4, but i tend to draw from with AS3 using the drawing API, this is because I tend to want to programmatically animate the drawing parameters.Is there some solution whereby you can use the drawing tools within flash CS3/4 but then 'capture' the drawing information so you could then draw the same line/curve/ shape from within AS3?So a pentool could then give a code output like:

lineStyle(..)
moveTo(...)
lineTo(...)

[code].....

View 4 Replies

ActionScript 3.0 :: Improving The Script Interpreter?

Nov 6, 2011

So i'm building a plugin system for my game, and i need to know actively what objects each plugin wants to use. For this, i have made a simple String interpreter. What it can do so far is separate id's and get whether a required input uses all of that kind.

my input format is like this:

Code:
IA:[param];IA[param];NN

IA is the index of all objects matching the parameter to the right of it. A is replaced by A if you want all those objects with the ID of param, or a number for a specific index.:[] tells the interpreter that what is inside the ['s is the param.the param is the string identifier that it looks for when finding objects.NN is the end sequence. this tells the engine that it doesn't need any more params.so say i had a plugin that uses the string

Code:
I2[player];IA[world];NN

the engine will loop through all objects with the ID "world" using them as the second param for the plugin's behavior, and the first will always be the 2nd "player" in the list.I can currently detect whether it wants all of a certain parameter, and what the parameter is. Now, i need to be able to find the index each param requires if it is not all. And i've tried multiple ways of doing this, but none so far have worked. What method would i use? Also, if you see anything that would kill performance in the interpreter, i would love to know, as this is called every frame.

My current code is a class with static methods called StringInterpreter, with the below code:

Code:
package Utils
{
public class ScriptInterpreter
{

[code]...

View 6 Replies

ActionScript 2.0 :: Improving Smoothness On Site?

Nov 5, 2002

Notice the animated "I"s in the top right... this is an MC with different instances of an I with a code in each one that animates it then resets it at a random size and alpha.If you scroll over the main menu buttons of the site and watch the animation sometimes it pauses for a bit. I have even removed many of the "I"s I had origonally and it still slows up a bit. This became more noticable when I added sound to the menu buttons.

View 5 Replies

Professional :: AS3 - Improving Printing Quality Of Pages

Aug 21, 2010

I am making a flip book in flash. I am using swf files as individual pages. User have the option to print pages. I am converting the swf into a btimap using bitmap data but when I print the test is not clear and all pixelated. Is there any way to improve the printing quality of pages?

View 8 Replies

Professional :: Improving Script Processing And Ensuring Completion?

Jan 7, 2011

I have a program in which I am running a number of for loops which are doing a number of different things.I pull in data from an xml file and then step through that data to dynamically create arrays, populate the arrays, and create and modify movie clips.

The program I'm building is similar in scope to one I developed in Director many years ago, and in that environment we had to actually put breaks in using timers to ensure that the data would be processed and that the system wouldn't choke.

What I'm seeing with this flash version of the application is similar and I suspect the same.  Basically, when navigating from the frame where the scripts are processed to the frame where the movie clips are displayed, there are times when it works perfectly and times when things are out of whack.  I put in a 5 second delay (arbitrarily) to see if this would resolve the issue and on my system at least it does.  But I need some advice on coming up with a real solution.

View 25 Replies

Flex :: Coding Tools Do You Use For Improving Effectivness Of Programming?

Nov 6, 2011

What coding tools do you use for improving effectivness of programming in FLEX?I found Tr.ace() AS3 Debugging Utility whichme a lot with working in a team of programmersframeworks like RobotLegs and others.

View 3 Replies

ActionScript 3.0 :: Flash Improving Time Taken To Open Swf's In Webpage?

Nov 25, 2010

I have an html website that displays still photographs contained in a swf built in flash. I refer in particular to the images in the rectangle window on the right. [URL]As you can see the swf starts with a % preloader. The images are fairly high resolution, 14 in total (each embedded into movie clips and not dynamically loaded)I just wish to know if there is a way of SPEEDING up the time it takes for the swf to load and open in the web page, to aid users with a slower connection.I understand that if my host server is reaonably fast (which I believe it is) then the problem lies with the users connection speed, but IS THERE ANY ADD ON ACCELERATOR or CODING I can apply from my side of things ?

View 4 Replies

ActionScript 3.0 :: Drag And Drop Multiple Objects / Improving Code Suggestion

Feb 25, 2010

i want to improve my code for drag drop seven different or multiple objects to be moved in any three of target places then target value will be search by category or feature wise,[code]

View 3 Replies

Sheared Text Rendering?

Dec 9, 2011

I have to animate a bunch of text flags on a timeline, which my artist layed out in Illustrator. I import them from AI and if I am zoomed in they look fine, the verticals of the text are straight up and down. But if I zoom out, the verticals rotate to the slant.

Same goes for when I publish the swf. I have the flags all scaled small on the screen, and the text is all messed up. Then I scale up each flag to focus on it, and somewhere in the scale Flash decides my text is now big enough to look the way I want it. It is erksome. Is there a way I can force it to render straight up and down, without having to break everything and un-editablize my text?

View 1 Replies

ActionScript 1/2 :: DropShadowFilter Not Rendering?

Aug 5, 2009

I scripted a DropShadowFilter to render on my Movie Clip. The MC just consists of static text and its using the Tween class to move on the screen. Can't figure out why its not showing up. I'm using the same method on another movie clip that is just images, and works fine. Not generating any errors either.

Code:
import flash.filters.*;
var tds:DropShadowFilter = new DropShadowFilter(3,90,0x000000,40,3,3,1,3,false,false,false);

[code]....

View 4 Replies

Professional :: Swf In A Webapp Not Rendering?

Jan 6, 2010

I used FalshDevelop to compile PanoSalado opensource ".as" files to produce corresponding ".swf" files.it works great and my movie shows.However, when I run it via a webapp under Tomcat, it just sits there. The url is:Note that I'm running the same file (.swf) from the same place in the filesystem.And I even tried to embed the swf in an html page (actually a jsp page) to see if it would work.. but no dice... same issue.FWIW the html that is used to invoke the swf is :

<div id="flashbanner">this will be replaced by the SWF.</div>
<script type="text/javascript"> alert('0'); var so = new SWFObject('maps/ModuleLoader.swf','mpl','555','416','9', '#336699');  alert('1'); 

[code].......

View 1 Replies

Professional :: F4V Not Rendering Video?

Jul 20, 2011

I'm trying to create a video background for a game using the FLVPlayback component. I need to smoothly trasisition between multiple videos so I make a FLVPlayer for each one so that I can just tween the alpha when I need to show it. When I start the game I load everything and store the Playback components in a Vector, I think add them to the stage like this
 
for(var i:int = m_Videos.length-1; i > 0; --i)
{
addChildAt(m_Videos[i], 0);
}

Once the game is loaded though the first video dosnt render at all, so I have a see thoough background. But once I transition to a video that is on top of it, the top video renders.

View 4 Replies

Rendering Flash In The Server?

Oct 26, 2009

I am trying to find a way to render a Flash object, more specifically a Open Flash Chart, in the server, and save a screenshot of it to a temp file to embed it in on a PDF report.

I've found some solutions that use Javascript to generate a temp file in the browser, and then send it to the server (like here). However I need to generate reports automatically and send them as e-mail attachments, so I cannot render it using a browser.

View 1 Replies

Actionscript 3 :: Use The GPU For 3D Rendering In An Adobe Air App?

Jan 18, 2011

I'm playing with Air and trying to get the PaperVision3D engine to display some 3D models.

But its really slow since Air seemingly does not support GPU acceleration. Any way to enable GPU rendering in air apps? browser apps can use "wmode=gpu" in the HTML settings...

View 1 Replies

ActionScript 3.0 :: Font Rendering Changes When It Is Too Big

Apr 14, 2011

The idea is to increment the height of the TextField (with font embedded) and see the difference when it becomes too big. When container.height is over 279 you can notice two things:

1. container starts to increase its width property.

2. The "pixelated" glitch is gone now. (the original ugly pixelation comes from rendering multiple TextFields on top of each other - you can check the for loop). It looks like the issue of one font covering the other is solved differently now.

My question is: what changes when the font becomes too big? is there any property of the TextField (besides the size of course) that I can check to catch the moment? (gridFitType, antiAliasType, thickness, sharpness do not change)[code]...

View 5 Replies

ActionScript 3.0 :: Gpu Rendering And Bitmaps?

Mar 17, 2012

I'm working on better performance on mobile device with gpu rendering set to on. I use only bitmaps for animations, but I have some doubts:

1. If my content is poor bitmap (jpg or png file) should I cache its container as bitmap?

2. Shoud I use cacheAsBitmapMatrix for my bitmaps to have smoother animations or poor bitmaps are already optimized?

View 0 Replies

IDE :: Dynamic Textfield Rendering ?

Feb 28, 2008

I have a flash file that loads dynamic text from a text file. When you press the space bar, it animates the text upward like movie credits. It works fine until I add more than 50 lines or so, at which point it delays showing the text until it's well into its scrolling.the kink here is that it only displays this error when it plays in fullscreen mode (which it is set to do by default, and what I need). if I escape out to window mode, it plays the text animation just fine.

View 1 Replies

Rendering Div Contents In A Flash Movie?

Jul 2, 2009

I have a webpage containing 2 DIV containers hidden using CSS. The site has a Flash Movie embedded. I want to render the content of these hidden DIV containers from within the Flash movie.I'm using CS4?  
 
HTML
<div id="sectionone">content</div>
<div id="sectiontwo">content</div>
  
CSS
hide sectionone div and sectiontwo div
 
FLASH
Display sectionone within flash movie when requested

View 2 Replies

Professional :: Text Rendering With Motion?

Jan 18, 2010

I would like to ask the experts for help.  In a flash movie I want three lines of text where I want line1 to appear with a preset motion, then line2 directly below line1 to appear with a preset motion, then line3 directly below line2 to appear with preset motion.  I want to have the smallest possible fla file. 

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved