Flex :: Increse Performance Of Raster Scrolling On Mac?

Feb 25, 2010

I have a game with a big raster map.Now we are using jpeg (4900x4200)And durring the game we need to scroll through this map.[code]In windows, we have very good performance.In Linux and Mac in flashplayer we have a good performance too.But in browsers performance is quite slow!

View 2 Replies


Similar Posts:


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

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

Flash :: Curving Text In Flex Without Converting To Raster Graphics?

Nov 2, 2011

Can you add curve effects to text in flash without converting it to a raster format? Either applying the effect straight to the text, or converting the text to a path and applying the curve effect to the resultant path?

View 1 Replies

Actionscript 3 :: Adobe AIR Scrolling Performance On IPad2?

Apr 15, 2012

I'm currently working on an Adobe AIR application which is targeting the iPad2 as the hardware platform, and can not get decent scrolling performance on one of the screens. I'm using a spark list, with a custom item renderer like so:

<s:List id="productList" top="116" bottom="0" left="10" right="10"
width="100%"
visible="true" includeInLayout="true"
height="0"

[code]....

As you can see this is pretty light-weight, yet my dataprovider contains upwards of 100 items, and 11 of them can be on screen at any one time. Everything I've read around increasing performance for scrolling revolves around using opaqueBackground and cacheAsBitmap, however no matter what I try neither help here. Using cacheAsBitmap at the list level doesn't help as the item renderer recycling kicks in once you've scrolled more than a couple of lines requiring the whole thing to be re-rendered, and using it at the item renderer level is still horribly slow when scrolling fast — presumably because many are being recycled at once during a very fast scroll.

I know the iPad should have no problem blitting a screenful of information in a frame at 60 fps, yet when I scroll quickly I'm seeing it struggle to make 10 fps (from sight). So the question: have I missed something obvious, or is this to be expected due to the number of layers (and vector rendering) involved when using AIR? For the record, I have tried changing the render mode for the application and tried changing the frame rate to eliminate the obvious.

View 1 Replies

ActionScript 3.0 :: Performance - Masking And Scrolling Multiple Images?

Oct 27, 2011

Basically I'm building an image gallery. Rather than thumbnails, it just loads the full size images and masks them, so they can all be scrolled through. (I made an intuative preloader for this). It all works fine. The only problem I see there being is performance, when there's quite a few images.Could anyone suggest a way to reduce the load, and make it a bit more memory friendly? I (stupidly) thought that masked out images wouldn't render. I think I'm wrong though? I thought maybe I could make the images off the screen set to 'visible = false'?

View 4 Replies

ActionScript 2.0 :: User To Add / Remove A Row Which Would Increse / Decrease The MyDataGrid.rowCount Of The Datagrid

Aug 24, 2005

Ive got an editable datagrid, and the size allows 16 rows. It is possible for the user to add/remove a row, which would increse/decrease the myDataGrid.rowCount of the datagrid. However, whenever a row is added/removed, the rowCount remains the same (16, which it was created with). Is there another built-in variable other than rowCount that can gauge the ACTUAL rows in the datagrid, not just what it was created with?

View 1 Replies

Flex :: Scrolling Interval In A Spark List With Tilelayout Oversized While Using Mouse Wheel After Scrolling With Mouseclick

Aug 27, 2010

I have a spark List with an item renderer and a tile layout. If I scroll by clicking with the mouse on the scroll bar and trying to scroll with the mouse wheel after that, there is a problem: The interval of the scrolling is oversized, instead of scrolling one item down (or up) the List scrolls 4 items down (or up).

[Code]...

View 1 Replies

Flex :: Event When The Scroller Starts Scrolling Or Ending Scrolling In 4.0?

Feb 10, 2011

are there any events that the scroller will dispatch when being scrolled?

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

ActionScript 3.0 :: Changing From Raster To Vector?

Aug 5, 2011

I'm working with a bit of code I ran across to see if I can convert it for a magnifying glass effect on swf's. It's written to work with raster images but in my case I've created swf's from the pngs I have to reduce their weight.The code I'm working with is filling the rectangle (magnifying glass) with the beginBitmapFill method. I'm kinda lost (being pretty new to Flash/AS3 programming) as to how to accomplish this with vector images. The key lines I'm dealing with are

ActionScript Code:
var curBd:BitmapData;
var curBmp:Bitmap;
curBmp=new Bitmap(new BitmapData(...;

[code]...

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

Create An IK Bone Armature For Raster Graphics?

Aug 13, 2010

I have recently been experimenting with animation in Flash, but now I've run into a problem-- whenever I try to add bones to a bitmap image I want to animate, I get a message saying that I "cannot link bitmap objects."  Does this mean that bones can't be applied at all to raster graphics?  I also tried converting the image to vectors via the Trace Bitmap function, but when I attempt to add bones to the result it complains that "the image is too complex.  Please optimize or convert to a movie clip."  I followed its directions, but it continued to complain that the image was too complex. As a sanity check, I drew a simple X on the frame with the pencil tool and received the same 'too complex' message from Flash when I tried to add bones to it.

View 1 Replies

Using Vector Or Raster Graphics When Manipulating 3D Artwork?

Nov 20, 2009

I've got a project that heavily utilizes the new 3d artwork tools in Flash CS4. My question is has anyone done any tests to see if Flash is quicker with raster or vector graphics? My SWF really bogs down on slower machines.

View 2 Replies

Flex :: Performance - Printing From AIR/Flex Application Causes Large Files Being Sent To Printer?

Oct 25, 2010

I am working on an Adobe AIR (2.0) application that contains a feature to allow users to print documents (such as salary slips). Those documents are originally in PDF format. Due to circumstances we cannot directly display those PDFs in the AIR application (for example using flash.html.HTMLLoader). Therefore we convert the PDFs to SWFs (using the pdf2swf tool, see The SWFs are loaded into the application using a mx.controls.SWFLoader, like so:

<mx:SWFLoader
id="salarySlipImage"
loaderContext="{someLoaderContext}"

[code].....

View 2 Replies

Professional :: Deform / Warp Raster Images Like In IPhone App Wobble?

Sep 17, 2010

I am very interested in applying the warp/deform effect seen in the iPhone app Wobble (it lets you define regions on a raster image and then deforms those regions as it gets input from the accelerometer or the user's touch as if they had adopted faux soft-body physics) to a game I am making, but I'm not sure how this effect was achieved. How I might program an analogous effect using Flash and as3?

View 2 Replies

Actionscript 3 :: Draw An Anti-aliased Bezier Curve In Raster?

Mar 26, 2012

Does anyone know a decent algorithm for drawing a anti-aliased (smooth) quadratic bezier curves in a raster?
I could simply draw them as vectors and then copy the image to a raster..

Is there any clever yet freely available algorithm to draw the curve directly to the pixels? I am currently using the algorithm implemented here:[URL].. I am doing this for learning purposes and because I am hoping it would be faster than using the copy pixels from a Shape option. Here is an example showing the none-smooth bezier is faster than the regular bezier:[URL]..

View 1 Replies

Flex :: How To Improve Performance Of App

Jan 19, 2010

I am working on a flex application. The application occupies 100% of the browser screen, but it is slow to load. How should I improve the performance, what are the best techniques one should follow for improving the performance of a flex App. I did try some stuff though, I am not using relative layout instead i am using absolute layout and putting the buttons/images etc at exact places in a Canvas, still i feel it is slow. Can I profile the App or flex code to see where exactly the app is taking the maximum time to execute.

View 3 Replies

Flex :: Performance Of HtmlText In TextField

Mar 18, 2010

I have got a performance problem about TextField.htmlText +=msg.And I know thatTextField.appendText(msg) works better than TextField.text +=msg.So I wonder if there's some method better than TextField.htmlText +=msg?

View 2 Replies

Flex :: Improve The Performance Of PurePDF?

Jan 31, 2011

I am using the Open source PurePDF library in my Flex AIR application. The problem is performance:It takes 100% CPU usage and too long to generate a PDF.

I have done some analysis on it and find that the text writing in pdf is expensive. That's why I need to know how I can improve the performance. Are there any fonts for which pdf generation is less expensive, or is there some setting or tip that can make this process somewhat better in terms of performance? secondly in case of images the ImageElement generation is very expensive when writing that element to PDF. Is there any way to reduce the processing?

I found a way to reduce the ImageElement generation processing by resizing the image using flex and by then passing the small image's bitmap data to the image element. It works fine, and i have reduced the time of execution to a good extent. is there any way to tell PDF to work in chunks or divide the work in such a way that it may take more time to complete but won't block the GUI while the PDF is being generated?

View 2 Replies

Flex :: Performance - Why Does Use A Single Threaded Model

Jul 10, 2009

Over the past few weeks I have been building a prototype application using a Flex front end connected to a J2EE backend using blazeDS. The prototype is an experiment to learn flex and see what its suitability is for a complex trading application requiring a large number of dynamic updates (i.e > 20 a second) via a pub sub type model. During some lightweight performance tests it's become apparent that I need to use multiple threads to ensure the UI remains stable when receiving a large number of updates from the server. All was going well until I discovered that flex has a single threaded programming model!

From a quick Google it looks as though there are numerous hacks to implement thread like behavior. I am sure many people must have been faced with a similar problem. Can people let me know: Are there any good threading libs that are well maintained etc Do other RIA technologies such as silverlight have the same problems. Why did abobe implement a single thread model? Are there any other tricks I can use to ensure my UI is stable.

View 7 Replies

Flex :: Performance - Six Seconds Between Initialize And CreationComplete

Apr 4, 2011

I'm working with a large flex applications and I have noticed that one of our largest components (with lots of child canvases) takes about 6 seconds between the initialize and creationComplete events. I've been doing some reading and have found that having lots of nested canvases can cause slowdowns, but i'm not sure if this is where the slowdowns would be?

View 3 Replies

Flex :: Improve The Performance Of The SQLite Database?

Apr 26, 2011

Background: I am using SQLite database in my flex application. Size of the database is 4 MB and have 5 tables which are

table 1 have 2500 records
table 2 have 8700 records
table 3 have 3000 records
table 4 have 5000 records
table 5 have 2000 records.

Problem: Whenever I run a select query on any table, it takes around (approx 50 seconds) to fetch data from database tables. This has made the application quite slow and unresponsive while it fetches the data from the table.

How can i improve the performance of the SQLite database so that the time taken to fetch the data from the tables is reduced?

View 3 Replies

Flex :: Module - Relative Sizing And Performance?

May 11, 2011

We are building a flex project and would like it to render faster. We do have situations where we reference parent module size properties to size current module containers, as well as current module size properties for a bunch of attributes including font size and element positions and sizes.

Would it help to create temporary variables for
a) pcw=parentcontainer.width, pch= parentcontainer.height
b) ccw=currentcontainer.width, cch=currentcontainer.height

and reference to pcw,pch,ccw and cch while doing positioning. Also given the bulk of the positioning will be done in mxml, will setting these interim variables in initialization function, allow them to be used in mxml such that they will resize as browser size is changed.

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

Performance :: Flex And Embed Fonts Shared Library?

Feb 21, 2010

I have a question regarding flex and embed fonts , i want to have a library of embed fonts that will have about 30 different fonts Is there any way i can only load the fonts that i use? ( dynamicaly )

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

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

Flex :: Performance - Multiple Instances - Deploying Applications

Mar 3, 2011

I have a Flex application which has to be deployed in some server. The typical form of access would be invoking the URL. Should I have multiple instances of the applications running on the same server/ deploying the application in diff servers and using a load balancer for routing? If i must have multiple instances, how to do that? On a given day, the application is expected to get around 2000-3000 hits. What are all the factors to be kept in mind while deployment?

View 2 Replies







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