Performance - Simple Flash Test Application Runs Very Slowly Compared To Exact Same Processing Applet?

Mar 3, 2011

I get a working application in Flash made that lets the user click to create blocks which subsequently gravitate towards the mouse. I made the exact same thing in Processing too, just to compare speeds.However, when I run the Flash version and add around 15-20 blocks, the framerate drops to 5-10 FPS.In the Processing version I can add ~60 with no noticeable slowdown. What's the deal, Flash?

Links to each version's source:

Flash version
Processing version

Here is the source for each in case you are a wizard and can help just by glowering at the code sternly and telling it to behave:

Flash version:

blocks.fla
import flash.events.Event;
import flash.display.MovieClip;

[code]....

View 1 Replies


Similar Posts:


Flash :: Flex Be Forbidden If Performance Is Top Requirements Compared?

Dec 20, 2010

I looked at this demo: [URL] Flex seems very slow compared to silverlight 3. Unfortunately can't see pure flash but should flex be forbidden if performance is top requirements compared to Flash ?

View 3 Replies

Actionscript 3 :: Deployed Flex Applet Not Processing Web Service Results

Nov 20, 2010

When I test my deployed app in a browser the popup window continues to be displayed even after it should be closed. Everything works as expected when debugged in Flash Builder 4.

Following is currently what's happening: the request is sent to my restful web service, which processes the request, (seemingly) the ResultEvent is called which in turn dispatches the profileEvt dynamic event that changes the view state. However, the popup window does not get closed and the applet gets 'stuck.'

Below are the flex applet web service event listeners/handlers:

webService.addEventListener(ResultEvent.RESULT, function(event:ResultEvent):void
{
var rawData:String = String(event.result);
var profileEvt:DynamicEvent = new DynamicEvent("profileSaved", true);

[Code].....

View 1 Replies

ActionScript 3.0 :: Swf Shows The Jpg But The Download Runs Slowly ?

Jan 19, 2010

I have a swf with 5 buttons (the number of buttons doesn't matter). Each button calls pictLoader to load a jpg and the percentTxt to show the percentage. Everything runs perfectly if I wait each jpg to load completely before clicking other buttons.But clicking another button to perform a second load by the same Loader before the first one is complete, doesn't kill this first load. The swf finally shows the right jpg ( the second one ) but the download runs slowly because it is downloading both jpgs.

Code:
var pictLoader:Loader = new Loader();
pictLoader.y = 70;
addChild(pictLoader);[code]....

Here I click 3 buttons in sequence. As we can see, despite the Loader will show just one jpg ( the last call ) it is downloading 3 !!

View 1 Replies

Professional :: Flex Applet In Flash Application, No Sound?

Sep 2, 2010

I have flex applet which captures microphone and plays back remote contact's voice. This application is running fine in browser or in standalone pages, but when this application is loaded in a flash application, no sound nor microphone capture. I have logs in this application, network invocations are working fine with my remote rtmp server application.
 
I remember I had an issue with allowScriptAccess which needed to be set to always instead of sameDomain on the web page where the main flash application was loaded, but here, this parameter seems to be set.

View 2 Replies

ActionScript 3.0 :: Game Runs Slowly And The Sound Effects Began To Lag?

Oct 22, 2010

I am trying to play sounds in my Flash gameAt times, the game runs slowly and the sound effects began to lagI noticed that all of the sound effects that are played using AS3 sound and soundChannel objects (which are held in an array and are triggered by a Click Event listener function) are lagging worse that sound effects which are played from within MovieClips timelines (These MovieClips are played using gotoAndPlay() which is called by a different Click Event listener function.) I am wondering why this is happening. I assume that anything done within Actionscript would be processed faster that anything done on a timeline.

View 0 Replies

Java :: Any Opensource Alternative To Squish To Test Flash / Silverlight / Java Applet Gui Objects?

Jun 3, 2011

If one doesn't have the source code, the only to test is to send keystroke and mouse move so I found this product but it's not free and opensource price is not even known :([URL] Squish supports automating interactions and testing non-HTML/DOM elements, that is, native objects, which are embedded in a web page. This is done at a fairly abstract level, which means that mouse and text input can be recorded and replayed.

In addition it is possible to inspect embedded native objects with the Spy tool and to insert verifications for these native objects. All of a native object's public properties can be accessed in test scripts.

View 2 Replies

Test The Performance Of A User's PC In/for Flash?

Apr 8, 2010

I'm a developer on nice space MMO using Flash. On new PCs performance is quite good, but some features shouldn't be enabled on older PCs because the framerate drops to shit if we do. Flash wasn't made for this, but hey, pushing boundaries is fun.

An example is fullscreen mode. Of course every user can manually enable it, but "advertising" it to a user with and oldie PC would be a bad idea - but for the Alienware crowd it would be dumb not to.

So I want to find out how "capable" a user's PC is to decide if I should enable or disable some features for him.

View 2 Replies

ActionScript 3.0 :: Calling Flash Application With Javascript For Batch Processing?

Oct 8, 2010

I'm working on a cartoon series in the uk and we use flash, 3d and after effects. I'm building a little pipeline tool to help us compositors do your job (there's hundreds if not thousands of files to be comped for a great number of shows)anyhow, we use flash for the 2d animation and we need to extract pngs. Right now it's a process I can't streamline (ie compers still have to have flash opened to choose which layers to export manually) but I'd like to be able to open flash and launch a specific javascript file ('command')

View 4 Replies

Professional :: Flash Player 10.2.159.1 Standalone Application CRASH With High Graphical Processing

Apr 16, 2011

Flash Player  10.2.153.1and  Flash Player  10.2.159.1 are crashing my standalone application. Later with  version 10.1 the application run ok, never crashes but was taking more than  90% CPU. The  new Flash Player solve the problem of resources, and drop down CPU to  30%, but  the application crashes always after a while, unespectly, or if I open the window of other application.
 
In  the other hand when I disable the harware acceleration at the swf  settings, the application goes crazy and start to make rapid flashes, and frame rate goes down to 8. [URL]. Right click on the Flash logo, Settings,then UNcheck the hardware acceleration in Display Settings.)
 
I'm  on a Mac Mini Core 2 Duo with Mac OS X 10.6.7 (the last Snow Leopard  these days). The graphical card is Nvidia GeForce 9400M.
 
I  did test the application at a Mac Book Pro core i5, Mac OS X 10.6.7,   graphica card Nvidia GeForce GT 330M and the application is more  stable but finally crashes too.
 
Finally if I export my application  with GPU Hardware acceleration at Publish Settings, my application  crashes almost inmediatly after I open it in each of the computers.
 
My guess is that the new Flash Version is using my graphical proccesor in a corrupted way.

View 6 Replies

ActionScript 2.0 :: Simple NetStream Put The Exact Same Code Within A Function

Jul 17, 2009

This seems like a simple problem but I can't seem to figure it out. If I use this standard code from the reference:

ActionScript Code:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://myserver/");
var stream_ns:NetStream = new NetStream(nc);
my_video.attachVideo(stream_ns);
stream_ns.play("myflv");

the video streams fine, but if I put the exact same code within a function like this:

[Code]....

View 9 Replies

Test Load Performance Of FMS?

Aug 15, 2010

Specifically, I want to test exactly how many connections my installed version of FMS can accept.
 
Is there such a tool for benchmarking with FMS?

View 1 Replies

Performance :: Flash - Application Slows Down [removeChild]?

Jul 30, 2010

I have a problem with my flash application because after a while that it is running, it eventually starts to slow down. My application involves something that needs to be replicated with the addChild() method. I've read some info on the internet which states that the cause of the slowing down or the lag in the application is that the removeChild() does not remove the child from the memory

View 2 Replies

Does Warnings Affect The Performance Of The Flash Application

May 27, 2011

I have a lot of the following warnings:Duplicate variable definition.variable 'elem' has no type declaration.Illogical comparison with null. Variables of type Boolean cannot be null.Will they affect the performance of my flash application? Will they affect the compiling time?

View 1 Replies

Performance :: Internet Speed Test App From AS3

Feb 13, 2012

I need to create a internet speed test application in Actionscript 3.0, like Speed Test. I need to calculate:
1. Download speed
2. Upload speed
3. Latency (Round Trip Time)
4. Jitter
5. Packet loss
6. Network availability

View 1 Replies

Flash :: Sudden Drop In Performance On An IPad AIR Application With RenderMode

Jan 13, 2012

We have an AIR application running on an Apple iPad, that occasionally experiences sudden drop in its performance. The frame rate drops from 60fps to 2fps and it never recovers from that. this is only reproducible on iOS 4, but never on iOS 5 - we've checked that on two identical iPads (generation 1)the performance drops occasionally, but always happens when we switch between apps - from our app to another and back very rarely, the performance drop also happens on first start of the app this performance issue does not happen in renderMode=CPU, but this mode doesn't work for us, because the rendering is ugly, especially on rotated bitmaps.

View 1 Replies

ActionScript 3.0 :: Flash XML Sockets - Get A Simple Socket Server Test To Work?

Jul 11, 2010

I've benn trying to get a simple socket server test to work for days now and it seems I'm not getting very far.Basically I just want to send some data from flash to the php script and have it echo it out, or anything at all like that I've been working from this tutorial http[url]....I have this basic flash class which just sends a string to the server:

Code:
package{
import flash.net.XMLSocket
import flash.display.MovieClip[code]...

The server side php is the attached script (pretty much this http:[url]....So I keep the php running on my server then run the as class, what happens is after a while (presumably the 15 second script limit in as) I get this error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: .../networking.swf cannot load data from website.com:9980.at base()

View 1 Replies

Flex :: Check The Performance & Memory Usage Of Flash Application At Run Time?

Aug 17, 2010

I have a flash application which consist of Grid Components, Button, Label, and Combo-box Components. All these components are used more than 70 times(simultaneously) with in the application. So Its takes too much of memory. So How can I test the memory usage of each component at the time of running. Is there any plug-in available for browsers to find the memory usage. I'm using flash CS3 and ActionScript 3.0. The application suppose to run in browsers.

View 4 Replies

Flex :: Actionscript - Wrap A Java Applet Around A Flex Application?

Oct 20, 2009

I'm just learning about Flex and I'm loving it. Unfortunatly I still have to make the decision on which RIA technology to use and its dependent on, among other things, from the following case: How can we wrap a java applet around a Flex application? More specifically, I would like to wrap/integrate NASA's World Wind applet in a Flex panel, similar to what Adrew Trice did with the Google Earth API.

An alternative would be id Flex would support direct access to the 3D hardware through OpenGL or DirectX. But I do not think that that is the case yet, not even through AIR.

View 2 Replies

Java :: Fullscreen Flash Application Test Needs External Pokes

Nov 28, 2009

I'm testing a full-screen Flash application. My preference is to drive the process with Java and I've had a lot of luck with the java.awt.Robot class. I'm looking for ways of modifying the test's behavior while the app still occupies the full screen. So far, I've found one "outside control", the caps lock key. If I see the process go horribly wrong, I turn on caps lock. Toolkit.getLockingKeyState notices that caps lock is on, and the test is terminated.

I need additional ways to change test operation, like "pause test" and "next test case." It looks like I could use num lock and scroll lock, but my tests need to run on Mac OS X, Windows, and Linux, so I can't count on having those keys. This is a small operation, so it's ok if the method isn't refined. But not as kludgy as overloading the caps lock key with 5 different operations. I have no internal control of the application; I'm supposed to "test" just like a user.

View 1 Replies

ActionScript 2.0 :: Loading Complex SWF Into Simple Movie - Slow Performance

Jan 27, 2006

In terms of performance, does loading .swfs into a flash movie have any implications. I've been experimenting with loading complex swfs into a simple movie and the complex .swf seems to perform a lot slower within the .swf than as a standalone. The host movie has no other funcitonality other than as a simple container. Is it in general terms better not to load .swfs into a movie but to code everything inside 1 movie ?

View 2 Replies

ActionScript 3.0 :: Game App Runs Fast In Simple Loader And Slow In Other Loader?

Apr 28, 2010

I'm feeling a bit low now as I have been suffering this for months. A simple loader loads my simple game and runs VERY FAST on even slow pcs BUT when I build this other loader, it goes quite slowly and I don't know where the app is going wrong. WHERE is the processing consumptoin coming from out of my app.

[Code]...

View 1 Replies

Flash :: CS5 Hopelessly Slow Compared To CS4?

Aug 11, 2010

I use Flash mainly for Slideshow Pro content and before CS5 I have used CS3 and CS4. I have never noticed issues with speed before, but since upgrading to CS5, my work has slowed to a crawl.
 
I am on a 64 bit machine Windows 7 machine very fast machine with 12 GB of memory, and while I realise that Flash is not a 64 bit program and can therefore not use all of that, I am wondering why it is so much slower than was CS4.

View 4 Replies

Flash :: HTML5 Be Advantageaous Compared?

May 1, 2010

I have read a few articles, I can't see why one would use html5 instead of flash so any few examples which could show the advantages ?

View 5 Replies

IOS :: How Does Adobe Flash / Flex Compared To MonoTouch

Feb 22, 2012

With Adobe now you can make Flash/Flex compile to the iPhone and iPad. How does that compare to MonoTouch? Does the Adobe solution really compile into native iOS code? Or is it just a iOS Air container that runs your code which is able to access the natife iOS calls through the Air container? I'm wondering what is different with Adobe compared with MonoTouch. I just want to know the differences between the two technologies. If any. Or do they work exactly the same way on principle.

View 3 Replies

Php :: Dead-simple Introduction To TDD (Test Driven Development)

Feb 6, 2010

Even though there are plenty introductions to TDD (even in PHP, my primary programming language now),My friend introduced me TDD a while ago, but I wasn't actually able to understand it - what's the point in writing tests to everything first - even the simplest tasks - when in the end, it looks it's more efficient to test only if something doesn't work, although it might be much harder to locate the bug (this could be solved through VCS, no?).So is there any introduction, with dead-simple examples and arguments behind "pros"?Something like "yeah, it's better, because you have better design - look at this example..."I understand that you create "test" and then the function, that should pass the test. But how you say to language, what results should it have? To me it looks that you do some function... debug it (the same way as you debug in no test driven dev.) and call it test and do it again..Also, is this applicable to MVC approach? Or rather, CodeIgniter Newbie MVC?Read a bunch of posted and googled advices, plans, ways and tutorials. I am still not entirely into TDD - I mostly have pretty good visualisation and I think (hope?) I write pretty maintable code, so i still see it as an extra work...

View 7 Replies

ActionScript 3.0 :: Make A Simple Test For Current Project?

Apr 26, 2011

I'm trying to make a simple test for my current project and I have som problems with Vector class. I'm assigning BitmapData to the MovieClip and store this MovieClip to an Array. Then I'm able to access BitmapData.If I do the same but use Vector instead of Array class, I get this error if I want to access BitmapData:1119: Access of possibly undefined property bitmapData through a reference with static type flash.displayDisplayObject.

Code:
//var store:Array = new Array(); // - THIS ONE WORKS!
var store:Vector.<MovieClip> = new <MovieClip>[];
var itemBitmap :Bitmap = new Bitmap();
itemBitmap.bitmapData = new BitmapData(100, 150, false, 0x990000);

[code]..

View 3 Replies

ActionScript 2.0 :: Make A Simple RTMP Player Test?

Jun 4, 2009

I've been trying to make my a simple RTMP player test. It seems to be getting the link, but not actually playing the video.

Here is the code:

Code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect("rtmp://video.njspeakup.com/vod/ppd");
var stream_ns:NetStream = new NetStream(connection_nc);

[Code].....

The onStatus is tracing back info, but like I said, nothing is playing. I have a videoPlayer on the stage with the name my_video. The FLA is attached. (CS3)

View 1 Replies

Flex :: Flexbuilder - Organize Application For Compile Performance?

Jun 28, 2010

I'm preparing to reorganize & refactory a Flash Builder application. The goals of the reorg are 1.) keep compile times for the part of the project I'm working on as fast as possible, 2.) keep the unrelated parts separate for code reuse. Goal #1 trumps goal #2 if there's a trade-off.

Currently, the app has assets in one project, core functionality AS3 in another project, and the MXML in a third project that links to the other two.

Would moving resources/code into swc libraries help compile time? What about compiling assets into an swf and embedding that into the main application?

View 2 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







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