Re: {Disarmed} [flexcoders] Flex SWF running slow

2007-05-11 Thread Kristofer Joseph

Flex can only run flash movies at 24 fps. So your Flash movies will look
slower, especially if you are trying to render at 40 fps.
When working with Flash content in Flex you should always set your Flash
movies frame rate to 24fps. This way they will look the same in Flash and
Flex.
There are a few work-arounds to control the actual display rendering though.
Look into that.

On 5/11/07, alex steel <[EMAIL PROTECTED]> wrote:


  thank for looking

It happens to me without any interaction
I know for service browser and everything is ok,
I still think it have problem with adding 300 ui elements

with my flash experience I would break it in smaller chunks, for
example 40 frames per second, break it in 8 per frame, it would slide
through it

how can I do such a thing in Flex ?

if that isn't problem I would still have good ad to my Flex experience
and future issues

I didn't looked about how Flex execute larger chunks of code
does it try to do it in one frame, or it's truly frame=free ?

 



RE: {Disarmed} Re: {Disarmed} [flexcoders] Flex SWF running slow

2007-05-11 Thread Tracy Spratt
Have you set creationPolicy="all" anywhere?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jurgen Beck
Sent: Friday, May 11, 2007 5:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: {Disarmed} Re: {Disarmed} [flexcoders] Flex SWF running
slow

 

Frame rate is still very much part of Flex, which by default uses 24
frames per second. You can change that during compile time.

Here is a good write-up on frame rates:
http://ajax.sys-con.com/read/303778.htm
<http://ajax.sys-con.com/read/303778.htm> 

Question: Are the 300 plus UI elements the checkboxes, labels, etc.that
you have in the application?

They seem to be showing up almost right away, at least for the first
tab. If you are writing your application code logically you can employ a
lazy loading scheme whereby data is not loaded (including data binding)
until it is really needed. Again, I haven't looked at your code, so I'm
not sure how much data you are pulling in. 

One thing you could do is temporarily comment out any code that actually
loads data and then see how your application behaves. If this eliminates
the delay, you can start enabling the data loading mechanism one by one
to see where the delay is introduced.

Jurgen

alex steel wrote: 

thank for looking

It happens to me without any interaction
I know for service browser and everything is ok, 
I still think it have problem with adding 300 ui elements

with my flash experience I would break it in smaller chunks, for
example 40 frames per second, break it in 8 per frame, it would
slide
through it

how can I do such a thing in Flex ?

if that isn't problem I would still have good ad to my Flex
experience
and future issues

I didn't looked about how Flex execute larger chunks of code
does it try to do it in one frame, or it's truly frame=free ?

 



Re: {Disarmed} Re: {Disarmed} [flexcoders] Flex SWF running slow

2007-05-11 Thread Jurgen Beck
Frame rate is still very much part of Flex, which by default uses 24 
frames per second. You can change that during compile time.


Here is a good write-up on frame rates: 
http://ajax.sys-con.com/read/303778.htm


Question: Are the 300 plus UI elements the checkboxes, labels, etc.that 
you have in the application?


They seem to be showing up almost right away, at least for the first 
tab. If you are writing your application code logically you can employ a 
lazy loading scheme whereby data is not loaded (including data binding) 
until it is really needed. Again, I haven't looked at your code, so I'm 
not sure how much data you are pulling in.


One thing you could do is temporarily comment out any code that actually 
loads data and then see how your application behaves. If this eliminates 
the delay, you can start enabling the data loading mechanism one by one 
to see where the delay is introduced.


Jurgen

alex steel wrote:


thank for looking

It happens to me without any interaction
I know for service browser and everything is ok,
I still think it have problem with adding 300 ui elements

with my flash experience I would break it in smaller chunks, for
example 40 frames per second, break it in 8 per frame, it would slide
through it

how can I do such a thing in Flex ?

if that isn't problem I would still have good ad to my Flex experience
and future issues

I didn't looked about how Flex execute larger chunks of code
does it try to do it in one frame, or it's truly frame=free ?

 


Re: {Disarmed} [flexcoders] Flex SWF running slow

2007-05-11 Thread alex steel
thank for looking

It happens to me without any interaction
I know for service browser and everything is ok, 
I still think it have problem with adding 300 ui elements

with my flash experience I would break it in smaller chunks, for
example 40 frames per second, break it in 8 per frame, it would slide
through it


how can I do such a thing in Flex ?

if that isn't problem I would still have good ad to my Flex experience
and future issues

I didn't looked about how Flex execute larger chunks of code
does it try to do it in one frame, or it's truly frame=free ?







Re: {Disarmed} [flexcoders] Flex SWF running slow

2007-05-11 Thread Jurgen Beck

Correction! On second and subsequent loads I could see what you exeperience.

Here's what I first saw:

When the application first loaded, I saw all the UI components on the 
form. Didn't take long to load the application.


I then started playing around by clicking on checkboxes and noticed that 
you have the  wait cursor enabled, indicating that you are communicating 
with AMFPHP. From that point on subsequent application loads (i.e. page 
refresh) would cause the delay you indicated.


I haven't looked at your code, but I would start checking into what you 
are doing when the application communicates with the server. Are you 
loading any large datasets?


Using AMFPHP you should be able to use the service browser to check how 
your classes return data.


All this is of course stab in the dark, but I thought it was a bit 
strange that none of the delay issues started happening until after I 
had checked one of the checkboxes.


Jurgen

alex steel wrote:


I have a little problem with Flex
compiled file is running slow, freezing computer for about 2 sec

basiclly I use amfphp2 to get information for dynamiclly creating Lists
you can see it at
http://www.pleasures.co.yu/_gvozden/RHS/RHS.html 



and code which is doing that is at
http://www.pleasures.co.yu/_gvozden/RHS/RHS_code.txt 



as far as I see it there is nothing tricky there except if creating
300 UI items freeze it, and it is obviously

being that I am new to Flex but expert for Flash I find this really
weird and bad

how can I resolve this issue (without making it static)?

AMFPHP 2 browser returns query for about 2 sec, one's that clock is
showing , then there is freeze :(

thnx
Alex

 


Re: {Disarmed} [flexcoders] Flex SWF running slow

2007-05-11 Thread Jurgen Beck

Came up really snappy for me. No performance issues at all.

You may need to check and see what else is going on with your Flash 
player and the browser you are testing this with. If you are running 
this on Windows, check with the Task Manager to see what processes are 
consuming a lot of CPU cycles. Running this on the Mac you can do the 
same with the Activity Monitor.


This may start giving you a clue as to what may be happening on your system.

Jurgen

alex steel wrote:


I have a little problem with Flex
compiled file is running slow, freezing computer for about 2 sec

basiclly I use amfphp2 to get information for dynamiclly creating Lists
you can see it at
http://www.pleasures.co.yu/_gvozden/RHS/RHS.html 



and code which is doing that is at
http://www.pleasures.co.yu/_gvozden/RHS/RHS_code.txt 



as far as I see it there is nothing tricky there except if creating
300 UI items freeze it, and it is obviously

being that I am new to Flex but expert for Flash I find this really
weird and bad

how can I resolve this issue (without making it static)?

AMFPHP 2 browser returns query for about 2 sec, one's that clock is
showing , then there is freeze :(

thnx
Alex