Flex :: Optimization - Throttle A CPU Intensive Loop In Adobe?

Aug 17, 2011

I have a method, which connects to a HTTP server and requests via XMLRPC, a list of data structures and then for each data structure gets a list of attributes and the values of those attributes. It's implemented using nested for each loops.

The problem is that it's loading a lot of data all at once, and consuming a massive amount of CPU (over 100%) reading responses from the server and parsing the XML.

If I were writing the program in C, I'd insert a usleep() at the end of the loop, to wait before trying to load more data and reduce CPU usage. What would the equivalent be in Flex?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Loop Through An Array / Object That Is Less Processor Intensive?

May 18, 2011

Just curious, if you want to loop through an array or object that is less processor intensive.[code]...

View 4 Replies

ActionScript 2.0 :: CPU Intensive Loop "abort The Script..." - Prevent The Pop Up?

Dec 21, 2004

I have a very CPU intensive loop that lasts for about 30 secs sometimes more.
The loop is very well controlled and ALWAYS terminates correctly after the solution is found. It cannot hang.

The problem is that the very annoying dialog "do you want to abort the script" pops up in the middle of the loop. It really screws up the the interface as the users thinks the machine has hung. Is there any way to prevent the pop up?

View 7 Replies

Flex - Options To Create Line Chart In Flex For Data-intensive Web App?

Jan 13, 2012

My group is working on a Flex/AS3 scientific web application that is data intensive. Luckily the only plots involved are line charts. However, each line chart may have multiple traces (up to 24), and each trace may contain up to 2000 points. The user will need to zoom in and out and interact with the data (e.g. data tips, etc.).

The response I'm getting from developers is that's a lot of data to render in a plot in Flash. For reasons beyond the scope of this post, we can't sample the data to reduce the size (this has already been done and nature of the data prevents further sampling).

Rendering speed is critical for this app. What kind of rendering speed should I expect the Flex 4 line chart component to provide for a given number of points (e.g. 1 second to render 1000 points?)

Are there products available that handle plotting large data sets better, which can be incorporated in Flex (I've seen FusionCharts and ZingCharts online but have no idea how they compare with Flex's components)? Of those, which are easy to develop with while still providing a lot of flexibility in look and feel?

View 1 Replies

ActionScript 3.0 :: Turn Off Throttle Down/sleep Mechanism In Flash Player 10.1?

Aug 9, 2010

Hello I am wondering if any of you know of a way to turn the throttle down (sleep) mechanism off when a C++ app is hosting the flash activeX control. The flash control is invisible in this case and so the flash app will throttle down. Tinic Uro does not seem to be answering questions related to work arounds for apps that might not want flash to throttle down.

This is especially annoying when you are hosting the flash control in your own application.

View 1 Replies

Performance :: Optimization Techniques For Flex Applications?

Oct 9, 2011

We are starting to build a Flex 4.5 application (with LCDS) and a Spring/Hibernate based backend.In this context, is there a well-known list of overall performance optimization techniques that one could follow to ensure optimal performance on the client (flex) side? - especially, given that we anticipate users with poor bandwidths

View 1 Replies

Flex SQLite Optimization: Adding Database Name In Front Of Tables?

Sep 18, 2011

This article on Livedocs says you should add the database name in front of tables.[URL]..My question is, should I do that everywhere where a table name appears or only once?In this query: select T1.col,T2.col from T1 left join T2 on T1.id=T2.id order by T2.order;

Should I add main.T1 and main.T2 everywhere or just after for, the first time: select T1.col,T2.col from main.T1 left join main.T2 on T1.id=T2.id order by T2.order;

View 1 Replies

Flex :: Dynamically Create Axis Via ActionScript In Adobe Flex Charting Library; Adobe Bug?

Mar 21, 2011

Multiple axis creation via MXML works fine:
http:[url]...

But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....

View 2 Replies

ActionScript 3.0 :: Programmatically Detecting Between Adobe Air And Adobe Flex?

Feb 12, 2010

I have some shared code between an Adobe AIR App and an Adobe Flex App.

On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.

How can I programmatically detect the difference?

View 1 Replies

ActionScript 2.0 :: OnResize CPU Intensive?

Jul 10, 2007

I've made a flash file which contains the following:backgroundMC (consist of vector art made in illustrator and imported)holderMC (loads an external swf which contains my game)I want the background to scale when the Stage get resized so I used the following code as everyone else does:

ActionScript Code:
Stage.scaleMode = "noScale";
Stage.align = "LT";[code]....

Then if I resize my window the backgroundMC doesn't, because the listener isn't active anymore... Is there a way to resolve this? .I want my Stage to resize the backgroundMC, but without causing my game.swf (which is dynamicly loaded) to run slow...

View 1 Replies

Actionscript 3 :: Each Loop In Adobe Flash?

Jul 4, 2011

C:Usersifcdu1DesktopMTWatersrcFish.as:87: 1067: Implicit coercion of a value of type String to an unrelated type Food. can someone tell me why i am getting this error? i am trying to access the x,y values of a object of type Food in my array which holds food objects

[Code]...

View 3 Replies

IDE :: Making Perlin Noise Less CPU Intensive?

Feb 5, 2009

Lately I have been trying to animate the water surface giving it more natural look by use of Perlin noise. But it seems it is very CPU intensive operation. And if I use it along with other animations on the stage which involve lot of movements then it become really difficult for the machine to render the entire scene.

View 2 Replies

ActionScript 2.0 :: (FMX) Less Processor Intensive MC Scaling / Fading

Aug 14, 2004

I am trying to get 50 rectangular MC's to scale larger and fade to another color on rollover and rollouts. However, with the code I am using my processor can't handle it after about 8-10 MC's have been rollovered. Can anyone offer a better way to do this? Here is my code:

[Code]...

View 5 Replies

ActionScript 2.0 :: Less Processor Intensive MC Scaling / Fading

Aug 14, 2004

I am trying to get 50 rectangular MC's to scale larger and fade to another color on rollover and rollouts. However, with the code I am using my processor can't handle it after about 8-10 MC's have been rollovered.[code]

View 5 Replies

ActionScript 3.0 :: Force Update During Processor Intensive Routine?

Apr 29, 2009

i have a swf with several processor intensive subroutines within a main init() routine at start up (about a 5 secs startup wait). it needs a preloader not due to asset loads but to the processor intensive routines.i'm trying to create a preloader that will display progress as the routines complete but when i try to write text to text field as each subroutine completes either the textField.text is not updated or the text field display is not updated after each subroutine finishes.this prevents me from tracking the progress of the start up.

is there a way to force an update to the display list in the middle of a processor intensive routine? i believe flash is supposed to update after each frame but i'm not seeing this.also, the text field i'm displaying *before* this processor intensive routine *does* display when running locally but *does not* display before the routine when running online.not sure why.

View 21 Replies

ActionScript 3.0 :: Algebraic Or Trigonometric Functions More Computationally Intensive?

Feb 27, 2011

I'm not certain that there's a set answer to that question, so let me give you a more specific example: In my current code, I can solve a problem one of two easy ways: either by using three algebraic functions (one square root and two squares) or by using three trigonometric functions (one atan2, one cos, and one sin). And then I potentially repeat the code for several hundred iterations.

I'm curious if one set of functions is any more efficient than the other, if they're fairly similar, or if there may be a set of higher-order functions I'm missing that can do these kinds of computations much more easily.(For some more specifics, if you're interested: given a line between any two points, I want to find a new point along that line that's a set distance from one of the other two points.)

View 5 Replies

ActionScript 3.0 :: CPU Intensive Animation - Get These Huge Animations To Run In The Background Smoothly?

Jan 24, 2009

So I'm building a music site for a client, he's got a record theme so I thought it would be cool to build the site to look like a big turn table with all the content on the record.the record is designed to spin (not as disorienting as you'd think, just the grooves spin)...but the record image, which I did in Photoshop, is huge.

It was just slowing things down to a near crawl in browser. So I split the record image into four pieces and then mirrored them to get the full piece of the pie. It worked, but it's still running slightly slow. I do have a couple of blending options set to act as lights over the record...I tried deleting them to see if it would run faster, it's still jumpy. When the record is not moving(there's a button to turn it off) everything runs smoothly. The entire move is about 300k in file size and the record is being animated via actionscript.How do some of these bigger sites get these HUGE animations to run in the background so smoothly?

View 7 Replies

ActionScript 3.0 :: Recording A Graphics Intensive SWF As A Video Format Runtime SWF?

Mar 24, 2010

What options are available for recording a graphics intensive SWF as a video format such as MOV, MPEG, or others. I have created an interactive SWF and would like to capture video of it so that I can share it in different formats. I have used some free screen capture software before, but am not sure it is the best choice since maintaining the frame rate is important. Worst case scenario, I could just eliminate user interaction and automate the input...

View 2 Replies

IDE :: Optimization Of Complex Graphics?

Jul 28, 2009

making a flash game that has a lot of rather complex illustrator graphics. In the game you walk down a street, so all the graphics has to be moved every frame. In some levels where there are a lot of objects in the street the game starts to lag. after importing it to flash and making a mc of it, break it apart to save flash from drawing all the shapes that aren visible anyway?

View 2 Replies

Search Engine Optimization Flash?

Nov 12, 2010

just uploaded my first flash website..and I'm having difficulty working out how to get google to 'see' it.
I've registered the site with google and have a very specific phrase in the <title> tag of the html code but the more I investigate, the more complicated it seems..Can anyone point me towards a step by step tutorial or something to get my site in the top 10 results?

View 5 Replies

Flash :: Graphics Optimization For Programs?

Aug 23, 2010

Is there any program or setting for "pointing" flash programs at my graphics card rather than leaving it to the processor and RAM alone? I am running a specific frontend software that is a flash executable- unfortunately it lags heavily on execution despite the fact that I have a very nice video card installed.

View 3 Replies

ActionScript 3.0 :: Flash Optimization On Mobiles?

Feb 18, 2011

I have read all the documentation and more on optimizations. My question is that if you have to resize sfws for different mobiles is it best to have a res thats the biggest mobile and the rest we can use fullscreen. Or is it best to make a smaller swf and have it size up to full screen. Obviously we are not going to create an swf in 20 sizes. By the way, is it MORE processor hogging for a  mobile to size down a 800 by 600 standard swf than to downsize an swf thats only a little larger than the mobile screen.

View 4 Replies

Professional :: Illustrator To Flash Optimization?

Nov 8, 2011

I'm itching to find the most effective way of importing my illustrator vectors into flash but keeping the file size as small as possible. At the moment i'm literally copying my vectors in illustrator and pasting them in Flash, it clearly works but the file sizes seem really high and its hindering the performance of my fla. Is there a more effective way of exporting? or optimizing the imported vectors once they're inside flash?

View 1 Replies

Actionscript 3 :: Memory Optimization In Air Apps

Apr 15, 2011

I have a simple air app that is deployed on a server. All it does is that it makes a httpService request to a webpage every 5 mins. For some reason, it starts out at out at 25MB memory utilization (Task manager), and every day, it adds about 1MB on top of that. I can't figure out why its sucking up memory. I have an eventlistener for the timer in the initialize of the app.I have read a few articles about memory optimization and best practices for air app development. They say you should remove the event listeners after they have fired. But if I do that, the timer will not fire any functions after it fires once.[code]

View 2 Replies

ActionScript 2.0 :: [FMX] Processor Usage Optimization?

Oct 20, 2003

I have a script as follows attached to an MC that is pretty processor intensive (well, that is when the MC is duplicated 30 times). I'm looking for some input from people on how to possibly optimize this to cut back on how badly it lags the rest of the movie. My computer is quite powerful but it still shows performance issues with this script:

[AS]
onClipEvent(load) {
//size of purpleCloud's active area

[code].....

View 3 Replies

IDE :: Best Search Optimization For Flashed Site

Jun 28, 2005

I have a client that I built a wonderful flashed site for (html page embedd). It isn't getting any attention on google compared to other completely html based sites. How can I tweak this situation for more google searchability?

View 14 Replies

ActionScript 3.0 :: Drawing In Bitmap Optimization?

Feb 11, 2010

today i started some particle generator class that will move particles over the stage via drawing in a Bitmap. Everything works well with low amount of particles, lets say 1000, but for my surprise when i added 10 000 particles the frame rate dropped drastically. And i am saying that since i made the same particle generator using MovieClips instead of drawing in Bitmap, the performance test i run on both classes showed that the Bitmap class with 10K particles on my PC works in around 10-12 FPS, and the MovieClip variation in around 20-21 FPS with the same amount of particles. The particles are identical and both classes are using linked list system to move the particles. So the only logical conclusion is that something is not right with the drawing function.

Code:
private function drawParticles(e:Event):void{
// clearing the _pZone Bitmap of the previous data
_pZone.bitmapData.fillRect(_pZone.bitmapData.rect,0);
_pZone.bitmapData.draw(_blankMc);

[code]...

View 1 Replies

Java :: View Part Of A Web Application - What Technology For A Pretty Intensive Grid View

Aug 3, 2010

I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example split an event that spreads among several cells. So I search an not too overkilling technology to render this kind of view. I begun with a PHP generated HTML page but the number of elements in the page make the mouse move jerky.

Moving to JAVA would give me better performances regarding the reuse of the generator of the view but it will still be an HTML page. So, here is my question: do you think that going forward with JAVA and its graphical capability is the simple solution or is Flash a better option for this part of a Web App? I'm afraid of the code I'll have to write in JAVA to handle the GUI presentation as well as the events generated by the 1000's cells plus borders of the page. In Flash, the graphical part seems simpler even if the actions handling is still huge.

View 2 Replies

Media Server :: Optimization Of Live Streaming?

Aug 25, 2010

I have live streaming but problem is that it is stopping and continues every 2-3 second, I do not know which issues causes it.

View 3 Replies

Professional :: Performance Optimization Vector Vs Raster?

Jan 28, 2011

I am trying to improve the frame rate of a game that draws many floor tiles. Currently, the floor tiles are vector graphics and stored as different frames in a movie clip. I wanted to experiment with rasterizing a floor tile and seeing if that would provide any frame rate boosts. I did this by converting one of my tiles (one of the frames in my movie clip) to a png and replacing the vector version of this tile with this raster version. I then tested two worlds--one filled with tile A (vector) and another filled with tile B (png).
 
In all my tests, world with tile A (the original vector version) outperformed the world with tile B. I am guessing that the reason I am not getting the expected performance gains is because I am still rendering the tiles in the old style and not using any strict bitmap drawing calls?why it is that this method fails to boost rendering speed? Would I have to switch my rendering code to strict bitmap draw calls?

View 7 Replies







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