Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Bad Performance Using Scale?



Hi all!

I'm trying to make a small game in Flash using ActionScript 3. On the scene there is a movieclip that can be moved around with the arrow keyes. Its also possible to zoom in and out. I use scaleX and scaleY for this.

The problen is that the more I zoom in (scale up my movieclip) the slower it gets. Finally the cpu is 100% and it moves and scales very slow. If I zoom out again everything is back to normal.

Why? Have I missed some trick? How to get around this problem?

Tanks for any help!



FlashKit > Flash Help > Actionscript 3.0
Posted on: 08-31-2007, 12:13 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Bad Performance Using Scale?
Hi all!

I'm trying to make a small game in Flash using ActionScript 3. On the scene there is a movieclip that can be moved around with the arrow keyes. Its also possible to zoom in and out. I use scaleX and scaleY for this.

The problen is that the more I zoom in (scale up my movieclip) the slower it gets. Finally the cpu is 100% and it moves and scales very slow. If I zoom out again everything is back to normal.

Why? Have I missed some trick? How to get around this problem?

Tanks for any help!

Scale Movieclip - It Works But The Scale Handle Wont Be Dragged Correctly
hi,

because I need to get a movieclip dynamically scaled I have the following script. But the problem is that the handle wont stay at the right bottom corner. I think it has to do something with the math function but I dont know exactly what.

ActionScript Code:
attachMovie("Pic", "thePic", 1);

thePic.onEnterFrame = function(){
    this._width = this._height = container.handle._y+25;
}

scrollArea = Math.sqrt(Math.pow(thePic._height,2) + Math.pow(thePic._width,2));
createEmptyMovieClip("container",2);
container._x = 50;
container._y = 50;
container._rotation = -45;
container.attachMovie("scale_handle", "handle", 2, {_y:scrollArea});
container.handle._alpha = 0;

// all mouseactions of the handle
container.handle.onPress = function(){
    this.startDrag("true",0,0,1,scrollArea);
    trace(scrollArea);
    trace(thePic._height);
    }

container.handle.onMouseUp = function(){
    this.stopDrag();
    container.handle._alpha = 100;
}

container.handle.onRollOver = function(){
    container.handle._alpha = 100;
}

container.handle.onRollOut = function(){
    container.handle._alpha = 0;
}

// all mouseactions of the picture

thePic.onPress = function(){
    _root.startDrag();
}

thePic.onRelease = function(){
    stopDrag();
    container.handle._alpha = 100;
}

thePic.onRollOver = function(){
    container.handle._alpha = 100;
}

thePic.onRollOut = function(){
    container.handle._alpha = 0;
}
maybe you could help me.

thanks in advance, ckey

Scale Movie Clip - Location/scale
Hi,

My brain hurts.

I have a mc containing four boxes. Beneath each box there are zoom in/out btns. Please see attached file.

I need to be able to zoom in on each box so it dominates the stage and is centred (see red dashed box in attached file for guide).

I've got this far but it doesn't work!???

import mx.transitions.*;
import mx.transitions.easing.*;
test_mc._xscale=100
test_mc._yscale=100

// function to scale the movie clip, parameter is a number to scale the circle with
function testscale (scaleFactor:Number):Void {
var xscaleTween:Tween = new Tween(test_mc, "_xscale", Strong.easeOut, test_mc._xscale, scaleFactor, 1, true);
var yscaleTween:Tween = new Tween(test_mc, "_yscale", Strong.easeOut, test_mc._yscale, scaleFactor, 1, true);
}
//not sure what of the exact scale factor yet but 200 is used just to see if I can get this to work//
btn1.onPress = function (Void):Void {
test_mc(200);
}

Simple Help: How To Initialize X Scale And Y Scale Into Precentages
Hi, it's me again. This is probably a simple help request: How can I convert the current scale of the instance to 100% so I can easily "visualize" and manage the instance when I modify its scale? Here's the actionscript, it works, but I just want the temp._xscale and temp._yscale to be in precentages, not real numbers.


Code:
USflag.onMouseDown = function ()
{
var temp = USflag;

onEnterFrame = function ()
{
//the two variable's value is currently between 20-30, I want it to be just 100%.
temp._xscale = temp._yscale *= .9;
trace (temp._xscale);
if(temp._xscale < 5)
{
delete onEnterFrame;
}
}
}
One last thing, what's the tag you have to put that is designed for boxing actionscripts? I'm suing [ code ][ /code ]

Scale Images Fullscreen Scale=true
Hi there,

I've been testing some stuff concerning fullscreen.In the generated html of my main swf I added a javascript to set the site to fullscreen. So when you view the site on a 20" screen the site takes the hole screen. In my publishing settings I set the html to 100% and scale. Probs are with the images from my gallery. When scaling the site the images get pixelated.
I did some testing like bigger quality on the pics but everything stays the same. The images are loaded externaly through an xml file. Any solution to this.

I won't my site to look great on 21" screen too:s.

Big thx in advance.

Stage Scale, Element Don't Scale
i got this color-changing background, and I have it fit into the browser window at 100% scale, so it scales proportional to browser window.

and then,

i got the content element on top of this color changing bkg, but i want it to remain unscaled... while always remain at the centre of the stage.

i am having this bkg and content in the same fla....

what can i do to seperate these two command ?
i did try
Stage.scaleMode = "noScale";
but it affects the background as well.

Stage Scale, Element Don't Scale
i got this color-changing background, and I have it fit into the browser window at 100% scale, so it scales proportional to browser window.

and then,

i got the content element on top of this color changing bkg, but i want it to remain unscaled... while always remain at the centre of the stage.

i am having this bkg and content in the same fla....

what can i do to seperate these two command ?
i did try
Stage.scaleMode = "noScale";
but it affects the background as well.

MC Clickable At Some Scale, Unclickable At Other Scale
Hi, my first post here. Just getting into actionscripting.

I'm trying to do an effect similar to what sofake has done on the www.matthewmahon.com site, or the billyharveymusic.com site.
I'm not copying outright, don't worry.

Anyway, when zoomed out, on mousover, any of the movie clips are clickable, which causes them to zoom in to, I assume, 100% scale. Then they are not clickable. When you zoom out, by clicking the background (which doesn't give you a clickable mouse pointer, but works ???) they become clickable again.

I assume this is an if / else situation where if scale < 100%, clickable, if = 100% not clickable.

If anyone has a moment to tell me if I'm in the right direction or not, or perhaps the clickable/unclickable code, I would much appreciate it.
thanks.

Stage Scale, Element Don't Scale
i got this color-changing background, and I have it fit into the browser window at 100% scale, so it scales proportional to browser window.

and then,

i got the content element on top of this color changing bkg, but i want it to remain unscaled... while always remain at the centre of the stage.

i am having this bkg and content in the same fla....

what can i do to seperate these two command ?
i did try
Stage.scaleMode = "noScale";
but it affects the background as well.

BG To Scale & Main Swf Not To Scale
Folks ive been trying to get my background to scale to whatever the browser is altered to mean while have my main flash site unscaled.

example www.lessrain.com (click on london)


Ive exhausted google trying to find a solution and had no luck from any forums. Cheers for any pointers

BG To Scale & Main Swf Not To Scale
Folks ive been trying to get my background to scale to whatever the browser is altered to mean while have my main flash site unscaled.

example www.lessrain.com (click on london)


Ive exhausted google trying to find a solution and had no luck from any forums. Cheers for any pointers

Performance
thanx to oldnewbie for the reply on my previous posting.
So, another question here. reading text from an external txt file is better or set all the variable directly inside the movie ( i mean set all the text to be displayed in the movie so dont have to load from an external file). Which one gives better performance?

Performance?
I have a performance problem. I hope somebody would have faced this kind of problem before. I have 2 flash movies main.swf and one.swf of sizes 50kb and 80kb. Both are working fine individually. But when I call one.swf from main.swf then both are becoming very slow. Can anybody explains what is happening and how to overcome this problem.

Performance
Just to clarify, I'm currently under the assumption that converting lines to fills knocks filesize up a little but allows shapes to be drawn faster and moved quicker at runtime.

Just checking if I'm correct here, because I'm trying to optimise stuff as much as I can.

Best Performance
Hello everybody! I'm not exactly a newbie, been doing flash for about a year, but I have never really created heavy applications like the game I am creating now.

I'm reeally interested in knowing which commands and scripts uses a lot of the procesor's power, and in which way a good flash programmer programs.
I've heard enterFrame is not good to use, but what about long loops and such? right now I have probably 5 loops going off at the same time when I fire a gun, how many of these can I add, or is there a better way of going about?

Any other information about what to use, and what not to use will be greatly appreciated!

/Tempesta

AS3 Vs AS2 Performance
Hello,

I did some performance tests in AS2 and AS3 and what I found is really surprising.

I just wrote the below code in AS3 and similar code in AS2. But I don't see *ANY* performance improvements in AS3 version. On a P4 3GHz HT, AS3 version takes 8% CPU and AS2 version also takes 7% CPU. No major difference.

So where is that 10x performance difference that people says for AS3/Flash Player 9.

Does this means that there is no difference in redrawing the screen in FP8 and FP9

AS3 Code:
Quote:
var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}
AS2 Code:
Quote:
var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}


AS3 Code:

Quote:





var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}






AS2 Code:

Quote:





var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}






Neeraj

AS3 Vs AS2 Performance
Hello,

I did some performance tests in AS2 and AS3 and what I found is really surprising.

I just wrote the below code in AS3 and similar code in AS2. But I don't see *ANY* performance improvements in AS3 version. On a P4 3GHz HT, AS3 version takes 8% CPU and AS2 version also takes 7% CPU. No major difference.

So where is that 10x performance difference that people says for AS3/Flash Player 9.

Does this means that there is no difference in redrawing the screen in FP8 and FP9 ?


Quote:




var toggleX:Boolean = true;

root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}




Neeraj

Performance
First, sorry about my English :)

I made a presentation in CD (that could be a web site), using many animations in action script, but the animations are too slow, and i´m using 41 fps.

The general performance of my swf are very bad. Anybody know how can i improve some performance to my swf?

AS3 Vs AS2 Performance
Hello,

I did some performance tests in AS2 and AS3 and what I found is really surprising.

I just wrote the below code in AS3 and similar code in AS2. But I don't see *ANY* performance improvements in AS3 version. On a P4 3GHz HT, AS3 version takes 8% CPU and AS2 version also takes 7% CPU. No major difference.

So where is that 10x performance difference that people says for AS3/Flash Player 9.

Does this means that there is no difference in redrawing the screen in FP8 and FP9

AS3 Code:
Quote:
var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}
AS2 Code:
Quote:
var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}


AS3 Code:
[QUOTE]
var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}
[/QUOTE]

AS2 Code:
[QUOTE]
var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}
[/QUOTE]

Neeraj

FMS X FCS (Performance)
Hi all.

Anybody has made a performance study comparing these two technologies, FMS and FCS?

I want to migrate from FCS to FMS, but I´ve to comprove the better performance to my boss.

Thanks a lot.

Performance Log
Hi,
FMS 2 server can monitor at least "active connection", "megabites", "memory" and "cpu" usage. However I have not been able to save these values to a file for late viewing. Only been able to monitor them live. Does anyone know how to save the performance monitor data and view it later.
Regards
Boris.

AS3 Vs AS2 Performance
Hello,

I did some performance tests in AS2 and AS3 and what I found is really surprising.

I just wrote the below code in AS3 and similar code in AS2. But I don't see *ANY* performance improvements in AS3 version. On a P4 3GHz HT, AS3 version takes 8% CPU and AS2 version also takes 7% CPU. No major difference.

So where is that 10x performance difference that people says for AS3/Flash Player 9.

Does this means that there is no difference in redrawing the screen in FP8 and FP9

AS3 Code:
Quote:
var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}
AS2 Code:
Quote:
var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}


AS3 Code:
[QUOTE]
var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}
[/QUOTE]

AS2 Code:
[QUOTE]
var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}
[/QUOTE]

Neeraj

Mp3 VS Wav (performance)
Hi

I just want to ask if Flash uses more CPU ressourses when playing an imported MP3 file, rather than WAV? I mean: if I have exactly same sound saved in WAV and MP3, will it actually spare the processor more with the WAV version?

thanks

AS3 Vs AS2 Performance
Hello,

I did some performance tests in AS2 and AS3 and what I found is really surprising.

I just wrote the below code in AS3 and similar code in AS2. But I don't see *ANY* performance improvements in AS3 version. On a P4 3GHz HT, AS3 version takes 8% CPU and AS2 version also takes 7% CPU. No major difference.

So where is that 10x performance difference that people says for AS3/Flash Player 9.

Does this means that there is no difference in redrawing the screen in FP8 and FP9

AS3 Code:
Quote:
var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}
AS2 Code:
Quote:
var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}


AS3 Code:

Quote:




var toggleX:Boolean = true;
root.addEventListener(Event.ENTER_FRAME, EnterFrameHandler);
function EnterFrameHandler(myEvent:Event)
{
for (var i:uint = 1; i <= 24; i++)
{
if (toggleX)
root["Ball" + i].x += 5;
else
root["Ball" + i].x -= 5;
}
toggleX = !toggleX;
}




AS2 Code:

Quote:




var toggleX:Boolean = true;
_root.onEnterFrame = function()
{
for (var i:Number = 1; i <= 24; i++)
{
if (toggleX)
_root["Ball" + i]._x += 5;
else
_root["Ball" + i]._x -= 5;
}
toggleX = !toggleX;
}




Neeraj

AS 3.0 Performance
So I have been doing some personal performance checks on AS 3.0 vs 2.0, and I thought I would share. These are simple tests, and maybe not the most efficient, but revealing none the less. Also I discovered a "quirk" or so it may seem.

The first test I did was a simple for loop.
First the AS 2.0


ActionScript Code:
function test() {
var t;
var a = 50;
var i;
var tt = getTimer();
for(i=0; i < 1000000; i++) {
Math.round(a*50/3);
    }
trace(getTimer()-tt);
}
test();
test();
test();


times in ms: 2864, 3726, 2853

Now a performance enhancement I used to do with AS 2.0 is I would inline Objects. So for instance


ActionScript Code:
function test() {
var t;
var a = 50;
var i;
var Math = MATH;
var tt = getTimer();
for(i=0; i < 1000000; i++) {
MATH.round(a*50/3);
    }
trace(getTimer()-tt);
}
test();
test();
test();


times in ms: 2551, 2491, 3396

In this situation I inlined the Math object. Now this is important to remember because I am going to show contrast with AS 3.0 and using inline references to objects.

AS 3.0

ActionScript Code:
import flash.utils.*
var i:int;
 
function test() {
var a = 50;
var tt:int = getTimer();
for(i=0; i < 1000000; i++) {
Math.round(a*50/3);
    }
trace(getTimer()-tt);
}
test();
test();
test();


times in ms: 259, 267, 270

The script does execute at the very least 10x faster. Now, this is where it gets interesting, what about when I inline the Math object?


ActionScript Code:
import flash.utils.*
var i:int;
 
function test() {
var a = 50;
var MATH = Math;
var tt:int = getTimer();
for(i=0; i < 1000000; i++) {
MATH.round(a*50/3);
    }
trace(getTimer()-tt);
}
 
test();
test();
test();


times in ms: 469, 471, 474

The time to run the function is doubled! I am not exactly sure why this happens, maybe it has to do with how flash commits inline references to objects to memory.

Now I am not sure if Math is a special case, or if this seems to happen whenever a object is referenced inline. For instance, what if I pass an object to a function?

I have some more tests I am going to do, and i'll post them. If anyone is interested I would like to see other tests on this. It was a very common thing for me to use inline variable references to objects in the past, now it appears that with AS 3.0 it is just better to directly reference the Object.

Jonathan

Performance With Much Variables
I'm making an picturebook with 70 artist with each 6 thumbnails. I have now 70x6 thumbnails variables containing pathnames to SWF files. I seems that this is slowing everything down. can somebody give me advice how to solve this. I don't want to work with an external Database..
Will it perform better with 70 Array's containing al pathnames? Of course i then have to use splitstring or slice.........................(seems to be very slow.. Maybe hardcoded buttonactions are better?

Performance Issue
I have setup a funtion that dulipactes anmc called textbox on a rollover This textbox dulicates an mc called letter as many times as there are letters in the string. Each letter dupilcates an mc called lblock any where from 0 to 25 times to build the shape of the proscribed letter out of individual blocks to be animated into place.

Example

textbox get's a string "build this text"

letter is dulicated 15 times

Because I don't want to think about each letter and how many blocks are in each letter, let's just say that 15 letters duplicate and adverage 13 lblocks.

That is 195 lbocks adverage!

Another thing is that each lblock is animated--195 motion tweens.

I meant to use this to display text on a mouse over, but it lags when I test the movie. I assume that would mean lag for the final exported movie.

What can I do about this?

How To Check A SWF Performance ?
Hi Folks..

I got a peculiar problem..that is..i want to check how much memory a SWF is consuming ?? the thing is..i have done one project and it is too slow as the sige is too big..and i am optmising it now...now i want to compare this new file with the old file is it possible ?? i have seen the TASK MANAGER in NT4 ..but its showing whole memory consumpted by Flash Player..is this only way to compare ??? plz suggest me..

Thanks in Advance,
rangraosp

Optimizing CPU Performance
I have alot of movies that fade in and out, does it use very much system resources constantly doing a 1 frame loop. Will I get better performance if i stop them, or will it probably not be noticeable.

ActionScript 5 Performance
I've been writing Action Script for quite some time now. Mostly games at my website truantduck.com. Recently I've become obsessed with Performance, so I decided to write a very simple life simulator program and see how it compares to other simple two rule life sim programs. You've probably seen these before...

http://www.truantduck.com/life/life.html

So, my question to this group is this: Why does this flash program run so slowly when compared to similar programs? Check the source here:

http://www.truantduck.com/life/life.fla

As you can see it's a very simple loop.

I'm not expecting Flash to deliver the same kind of performance as an installed app, but I can't help but be alarmed when a C# program can run 10 times faster with 80 times the number of cells using nearly identical programming methods.

Does anybody have any tips on programming techniques for maximizing performance?

Hit Test Performance
Hi

Does anyone know if there is a difference in performance between the two usages of 'hittest'?

Is using a point with shapeflag=true more processor intensive than just detecting bounding boxes, or vice versa?

I need to optimise performance of a game which does multiple hit tests simultaneously.


Thanks in advance for any help

a.

File Performance
I've created a large exe with video. There are various places where the video stops and users answer questions related to the video they've just watched. The exe is 85mb. I'm running into performance issues where the video plays a little slower than it should and the sound files seem to be repeating themselves or stuttering. I have all the sounds on the streaming setting. This app is running on an 2 year old laptop.

--What gives with the sound?
--Do I need a faster computer?

Thanks,
Chris

Does UnloadMovie Help Performance?
Hi,

I have 11 movies that load in 11 separate empty movie clips sequentially. I want to improve performance as sometimes the movie doesn't catch up with the voice even if the movies are preloaded before play.

Will I improve performance by unloading the previous movie once it completes?

Example:
movie0.swf plays then movie1.swf plays and unloads movie0.swf

I know if you're loading into the same empty movie clip that one movie replaces the other and therefore unloadmovie is not necessary, but in my case what is the best way to improve performance?

Thanks!

Does UnloadMovie Help Performance?
Hi,

I have 11 movies that load in 11 separate empty movie clips sequentially. I want to improve performance as sometimes the movie doesn't catch up with the voice even if the movies are preloaded before play.

Will I improve performance by unloading the previous movie once it completes?

Example:
movie0.swf plays then movie1.swf plays and unloads movie0.swf

I know if you're loading into the same empty movie clip that one movie replaces the other and therefore unloadmovie is not necessary, but in my case what is the best way to improve performance?

Thanks!

How To Increase Performance
Hi,

I am developing a web site. A part of it is developed in flash. The address for this site is:

http://home.mindspring.com/~butohtama/main.html

After you access this page you have to click on "multimedia Theatre >>" button to see flash part( a pop-up window will come up then click play).

I would like to get feedback on performance of this flash movie. And also I need sugestions on how to improve performance.

Thanks in advance,
Radha.

How To Increase Performance
Hi,

I am developing a web site. A part of it is developed in flash. The address for this site is:

http://home.mindspring.com/~butohtama/main.html

After you access this page you have to click on "multimedia Theatre >>" button to see flash part( a pop-up window will come up then click play).

I would like to get feedback on performance of this flash movie. And also I need sugestions on how to improve performance.

Thanks in advance,
Radha.

Performance Differences ?
I am confused.REALLY CONFUSED!
I have a flashfilm and the html-swf version (when I start the html) is working on 3 different computers with the same performance BUT the projector file (exe) is working different on each computer. On my computer the music is slower than the pictures so what am I doing wrong ? Is the preloader not working in the projector file ? I have 10 fps. The swf is about 2.6 MB and I have 800MHZ.
Please help me.
Thanks
slapy

- Performance Issues -
Hi,
while trying to optimize performance of a flash site I could use some advice concerning the following questions:

- does anybody have a piece of script with which I can reliably measure the performance of the whole site (consisting of several swf files loaded into five movieclips in my main movie) - effective playback speed, available flash player resources/processing capacities, perhaps even display of all running processes, something like that...? It´s a bit difficult to judge all that just by looking at how fast and smooth the animations are played.

- how can I influence priorities for the rendering of the several swf files running simultaneously? Is it only the timeline layers of my holder movieclips in the main movie that tell the player which comes first? But anyway, this won´t change anything, I guess, as I assume the flash player simply takes the time it needs to process animations and rather slows down the playback frame rate if it gets too complex, right?
In my case I have kind of a slide show in one swf and in another one I have an animated navigation with many single letters each contained in a movieclip: now while the slide show fades over from one pic to the next the navigation becomes considerably slower. If possible I would rather have the fading pictures get slower as this is less obvious than the animated letters getting jerky. NB it´s just a playback and rendering problem as everything is completely preloaded...

- is it a known problem that websites slow down in IE5 more and more the longer they are opened, or to be more precise, the longer any window of IE5 is open? I´m not sure if it´s a problem with my system configuration, but after some minutes it´s getting really really slow, while it works fine in all other browsers I test on (including IE6). I think it´s not even a flash-only but a general problem.

- if you have any general hints for better performance, smooth playback, smaller code, or any other things you usually check before finally releasing a site, they are greatly appreciated! I´d be interested in what you do to give your projects the final touch...
:-)

Thanks a lot,
Toby.

Performance Question
If a movieclip is off stage does it effect the performance of the movie??


I haven't found any strait forward answers yet

Performance Question
if a movieclip is offstage, will it still effect the performance of the movie? in other words, will it add lag as though it were visible to the user?

What about setting the _visible property of offstage movie clips to zero?, will that imrpove my movie's fps?

I havent found many answers regarding whatb exactly effects a movie's fps, so your answers would be appreciated!

FDataGrid Low Performance...
Hi,

I have a problem developing a data grid displaying application in Flash AS using Macromedia's DevKit 1 FDataGrid component...

What I need to do is to make a table of records taken from a remote site using Cabron component [ http://cabron.sf.net ] and displayed easily using a component such as FDataGrid.

The broblem is, though, that the way FDataGrid loads the data is too slow... For instance, to load 30 rows of an eight-column table takes as much as 8 seconds which is already completely unacceptable...

The ActionScript code for this is as follows:


Code:
function getData_Result(result){
_root.thegrid1.setEditable(true);

if(_root.thegrid1.getColumnCount() == 0){
_root.thegrid1.addColumn("User");
_root.thegrid1.addCOlumn("DateIn");
_root.thegrid1.addColumn("DateOut");
_root.thegrid1.addColumn("TotalHours");

} _root.thegrid1.addColumn("Project");
_root.thegrid1.addColumn("Location");
_root.thegrid1.addColumn("Description");
}

for(i = 0; i < result.length; i++){
var row = result[i];
var item = { User : row.name, DateIn : row.date_in, DateOut : row.date_out, TotalHours : row.hrs, Project : row.project, Location : row.location, Description : row.description };
//var item = { User : row.name, "Date In" : row.date_in, "Date Out" : row.date_out, "Total Hours" : row.hrs, Project : row.project, Location : row.location, Description : row.description};
_root.thegrid1.addItem(item);
}

}
I wonder, what could be the problem? Could be that FDataGrid is bad for this, or the code isn't good, or maybe we should use something different than Cabron for remoting to Php in Flash (say, AMFPHP, for ex.?)?..

Any Way To Boost Performance?
Hey guys,

I'm wondering if anyone can help me out with some performance issues in my new game?

It seems to run fine on my P4 1.6Gz with 1GB RAM, but I notice it runs a little slow on my P3 500 with 64MB, and hardly runs at all on my P120 with 80MB.

I don't know id there is any way to increase the performance...well, more specifically, lower the system requirements. If anyone has any ideas, please let me know.

Here is the project demo:
Project Demo - SWF
Project Demo - EXE

_visible And Performance...
does anyone know if setting the _visible- property of mc's to false decreases cpu consumption? Or are they still calculated..?

Bart

Performance Issue
Hi,
I'm doing a game in which many movie clips move around. The problem is that when the number of movieclips increase the game becomes so slow. I tried to have onEnterFrame event for every movieclip, but it was so slow. I tried one onEnterFrame event to update the positions of all the movieclips but it was also slow.

Is there a way I can optimize my game...

Thanks..

Visibility/Performance
When you have an MC with tweening that is not visible in the movie, ie the alpha is 0 or its behind another MC, is it still using processing power?

Which Would Be Better Performance Wise?
I have two buttons which are in duplicate MC's. The onRelease for both buttons is:

on (release) {
_root.activephoto = this._parent._parent.buttonlabel+this.buttonlabel+ ".swf";
_root.loadphotoEaseResize();
}

WOULD it be better or worse performance/size wise to just have both buttons be in seperate instances (not duplicates), and change the code to something like :

on (release) {
_root.activephoto = "WeddingsIntro.swf";
_root.loadphotoEaseResize();
}

If the latter is the best, then would it still be the best if I had 8 buttons? Thanks!

Performance Test
Hello,

does anybody know how to detect the clients system speed?
The background is that I have a complex website with a lot of scripted animations. They all use one formula for the movement.
If you have a slow pc (PIII 700 MHz or so) then I want the animations to run in for example 20 steps. If you have a fast system 2000+ MHz the animation should run in 40 steps.

Do you know how to detect the system speed?


Thank you for every answer or hint,

Raphael

Performance Issue
Hello,

I am having an issue with the animation being choppy.
I have two sites where images are uploaded dynamically one by one to the gallery. Seems like the more images I have the worst the animation gets.

www.bludomainhosting.com/templatey has only 5-6 images in each gallery and the images transition much smoother than
www.kandcphotography.com which has over 20 images in each gallery.

Any ideas?

MP3 Player Performance....
Hi all,
I'm in the process of building a band website site, I've made a section so view can listen to the band music, but for some reason alot of people have come back to me saying they can't get the music section to work and sometime the audio sounds jumpy.....I have run some tests on my computer using netlimeter and it all seems to work fine (buffers before playing, even when I limit the bandwidth to around 5kb. Some people have reported that the green bar doesn't move before the play head.....)

Does anyone know why this is happening.....the site can be found @
http://www.roadsmusic.co.uk/themusic.htm
click on Music and selection what type of connection you have (slow or fast)


any help on this would be much appreciated as I really don't know where to go from here, - mainly as I can't replicate the error.


Thanks.
Kaan.

Copyright © 2005-08 www.BigResource.com, All rights reserved