Skip to main content

menu performance and s60

29 replies [Last post]
kawaiimomo
Offline
Joined: 2008-07-10
Points: 0

Hello all there,

Until today I was developing my MIDlet using at most 2 commands per Form, then no menu on RSK was displayed. Now i added some more commands and noticed the performance is slower, specially if I click on menu to display the commands. Also I noticed slower performance when I click on a single command without need to displaying the menu pane than when I display the menu and click on the same command. Is this normal? It's something related with early LWUIT code drops s60 performance issues?

I'm displaying an error dialog, and when the command is clicked, on ActionEvent I do the dispose() then show new Form, but the result is the new Form shown, some redrawing glitches, and watching the Dialog until it's disposed. Am I doing something wrong here?

Thanks

Message was edited by: kawaiimomo

I have another question: when I add more than 2 commands (on 2 SoftKeys phones), the first is located by default at LSK, the RSK holds a 'menu' label and when you display it, the SK options change to 'select' and 'cancel'. Where can I change these literals?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
saturon

I would be also quite interested in this. I am also testing on s60 phone
(nokia6110) and - whithout having done insolated tests - I can say that
performance of the menu is really slow with the december drop. It takes
sometimes like 2-4 seconds...

I will do more tests on this to make clearer statements.

Rgds Ben

-----Original Message-----
From: lwuit-users@mobileandembedded.org
[mailto:lwuit-users@mobileandembedded.org]
Sent: Dienstag, 13. Januar 2009 11:34
To: users@lwuit.dev.java.net
Subject: Re: menu performance and s60

Hi Chen, any news on the above?

Thank-you,
Paola
[Message sent by forum member 'paolav' (paolav)]

http://forums.java.net/jive/thread.jspa?messageID=325499

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

pakmee
Offline
Joined: 2008-09-01
Points: 0

Just to note something: the 6110 is not series 60, even if it does start with 6 in front, it is not necessarily a series 60. The 6110 one is a series 40 6th edition. Series 60 phones are usually faster. I shall give my code a go on an n73( series 60 , 3rd edition) and c how things work out there.

saturon

This is not correct, the 6110 Navigator *is* a S60 3rdEd FP1:

http://www.forum.nokia.com/devices/6110_Navigator

-----Original Message-----
From: lwuit-users@mobileandembedded.org
[mailto:lwuit-users@mobileandembedded.org]
Sent: Mittwoch, 4. Februar 2009 15:14
To: users@lwuit.dev.java.net
Subject: Re: RE: menu performance and s60

Just to note something: the 6110 is not series 60, even if it does start
with 6 in front, it is not necessarily a series 60. The 6110 one is a
series 40 6th edition. Series 60 phones are usually faster. I shall give
my code a go on an n73( series 60 , 3rd edition) and c how things work
out there. [Message sent by forum member 'pakmee' (pakmee)]

http://forums.java.net/jive/thread.jspa?messageID=330076

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

pakmee
Offline
Joined: 2008-09-01
Points: 0

My bad. I confused that with another phone :)

Chen Fishbein

Hi,
Can you send me the sample code? to chenf@dev.java.net

Thanks,
Chen

lwuit-users@mobileandembedded.org wrote:
> Hi Chen, any news on the above?
>
> Thank-you,
> Paola
> [Message sent by forum member 'paolav' (paolav)]
>
> http://forums.java.net/jive/thread.jspa?messageID=325499
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

Shai Almog

You need to open an issue in the issue tracker linked from the
project page.
You will need to request an Observer role to do this.

> Hi Chen
>
> I have finally got some sample code together, but it includes a
> number of classes and a resource file (speed decreased more with
> the addition of images).
>
> Is there somewhere I can upload or send a ZIP to?
>
> Alternatively, drop me a mail at lwuit@h365.co.za and I will send
> the zip direct.
>
> Thank-you,
> Paola
> [Message sent by forum member 'paolav' (paolav)]
>
> http://forums.java.net/jive/thread.jspa?messageID=324781
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

paolav
Offline
Joined: 2008-11-19
Points: 0

Hi there

I am rolling out an app on the N96 - S60 3rd Ed, FP2.

I am experiencing serious speed issues.

Do you ever find any work arounds or bottle necks?

Thank-you,
Paola

Chen Fishbein

Hi,

lwuit-users@mobileandembedded.org wrote:
> Hi there
>
> I am rolling out an app on the N96 - S60 3rd Ed, FP2.
>
> I am experiencing serious speed issues.
>
Are you using the latest source from svn? if so, is this a regression?(I
mean did it preform better around a month ago)

Thanks,
Chen

> Do you ever find any work arounds or bottle necks?
>
> Thank-you,
> Paola
> [Message sent by forum member 'paolav' (paolav)]
>
> http://forums.java.net/jive/thread.jspa?messageID=321873
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

paolav
Offline
Joined: 2008-11-19
Points: 0

Hi there

Its a definite regression, yes.

Running the application using the downloadable .jar ( I think 20080814) is FAR quicker than using the SVN revision 297.

I have a tab system that adds a number of customComponents - each component has a ticker (custom made) text entry box with blinking cursor (custom made). There are a number of background images painted here and there to get the right look. I have extended LookAndFeel and am using the a resource file to store all images and fonts.

SVN rev. 297 takes about 1.5 seconds to navigate from one tab to the next. The downloadable version - less than a second. Scrolling up and down the list of custom items is almost intantaneous on the old version - the new version, around a second again.

The ticker itself crawls along with SVN Rev. 297 - nothing I do will make the animate() and paint() occur quicker. On the old versions, the ticker is bliss.

Let me know if you need more info.

Cheers,
Paola

Chen Fishbein

Hi Paola,
This is a bit disturbing we try to optimize performance all the time.
Are you experiencing this on the emulator as well or only on device, if
it occurs on the emulator can you send me a use case from your code that
I'll be able to monitor the performance?

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> Hi there
>
> Its a definite regression, yes.
>
> Running the application using the downloadable .jar ( I think 20080814) is FAR quicker than using the SVN revision 297.
>
> I have a tab system that adds a number of customComponents - each component has a ticker (custom made) text entry box with blinking cursor (custom made). There are a number of background images painted here and there to get the right look. I have extended LookAndFeel and am using the a resource file to store all images and fonts.
>
> SVN rev. 297 takes about 1.5 seconds to navigate from one tab to the next. The downloadable version - less than a second. Scrolling up and down the list of custom items is almost intantaneous on the old version - the new version, around a second again.
>
> The ticker itself crawls along with SVN Rev. 297 - nothing I do will make the animate() and paint() occur quicker. On the old versions, the ticker is bliss.
>
> Let me know if you need more info.
>
> Cheers,
> Paola
> [Message sent by forum member 'paolav' (paolav)]
>
> http://forums.java.net/jive/thread.jspa?messageID=321908
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

paolav
Offline
Joined: 2008-11-19
Points: 0

Hello again

Yes, this slow down in speed is visble on both the S60 emulator and N96 handset.

I am hitting a deadline here but am keen to identify the bottlenecks myself. I will send some code when I have an opportunity to remove company branding, etc.

Cheers,
Paola

Chen Fishbein

Ok Thanks, I'll wait for your sample code.

Chen

lwuit-users@mobileandembedded.org wrote:
> Hello again
>
> Yes, this slow down in speed is visble on both the S60 emulator and N96 handset.
>
> I am hitting a deadline here but am keen to identify the bottlenecks myself. I will send some code when I have an opportunity to remove company branding, etc.
>
> Cheers,
> Paola
> [Message sent by forum member 'paolav' (paolav)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322046
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

paolav
Offline
Joined: 2008-11-19
Points: 0

Hi Chen

I have finally got some sample code together, but it includes a number of classes and a resource file (speed decreased more with the addition of images).

Is there somewhere I can upload or send a ZIP to?

Alternatively, drop me a mail at lwuit@h365.co.za and I will send the zip direct.

Thank-you,
Paola

paolav
Offline
Joined: 2008-11-19
Points: 0

Hi Chen, any news on the above?

Thank-you,
Paola

chenf
Offline
Joined: 2008-04-29
Points: 0

Hi,
Can you please send me the sample code? to chenf@dev.java.net

Thanks,
Chen

mrjansa
Offline
Joined: 2008-10-08
Points: 0

Any news on this issue?

paolav
Offline
Joined: 2008-11-19
Points: 0

Hi there,

The issue on my side was been isolated to a caching issue with the custom fonts and architecture - my components are heavely customised.

The font issue has been fixed, I am working on the architecture.

Cheers,
Paola

drdth
Offline
Joined: 2003-06-16
Points: 0

Interesting, I did experience performance issues with custom fonts as well. Maybe the comments in
https://lwuit.dev.java.net/issues/show_bug.cgi?id=39
can be of some help for future users. Haven't had problems since I customised Lwuit accordingly.

tiger79
Offline
Joined: 2008-08-18
Points: 0

hehe, please dont feel attacked... I'm just giving insight regarding my own experiences... as u say I have the source, and I'm obviously thankfull for it, but I simply dont have the time to check it out and/or improve it because I'm working on two commercial products at this time...
It's just that i gave a fast peek at LWUIT in my eternal quest to finding a J2ME GUI library, and having run the demo on several phones I noticed it's just very sluggish on the S60 platform...
Personally I'd think it might come out of the platform itself, S40 are native Java machines whilst S60 use a java virtual machine, so the problem may lie somewhere in there...

I've been loooking around on the net and I couldnt find anyone pointing out this performance issue, and simply guessing that this isnt some kind of secret, I decided I could post it without it being an attack on LWUIT itself but just sharing some knowledge regarding our experiences...
I am sure u can understand that.

iangalpin
Offline
Joined: 2008-08-15
Points: 0

The N95 has a very fast processor and there should not be a noticeable slowdown at all. Do you see the same slowdown when running the LWUIT demo?

kawaiimomo
Offline
Joined: 2008-07-10
Points: 0

Hi.

For sure we can see that slowndown with the demo. I just tried with the latest drop and still the same.

Only thing I can think of is about dynamically assigned heap in s60. I had problems with this some time ago while creating a buffer which was 30% of free mem long. The problem is s60 devices assign the minimun required memory to launch the MIDlet.

Could be this a problem with the s60 phones?

Regards

iangalpin
Offline
Joined: 2008-08-15
Points: 0

If it happens in the LWUIT demo as well, then it probably a J2ME implementation problem.
Try creating a very large buffer(2MB) at the start of the app, before LWUIT init, and then delete the buffer. This might allocate some memory to the J2ME virtual machine and prevent the VM having to wait for the phone to give it memory later on.

mrjansa
Offline
Joined: 2008-10-08
Points: 0

> If it happens in the LWUIT demo as well, then it
> probably a J2ME implementation problem.
> Try creating a very large buffer(2MB) at the start of
> the app, before LWUIT init, and then delete the
> buffer. This might allocate some memory to the J2ME
> virtual machine and prevent the VM having to wait for
> the phone to give it memory later on.

Has anyone tried this solution, and does it work?
If it does, I would be glad if you could post some sample code.

tiger79
Offline
Joined: 2008-08-18
Points: 0

well,
i tried it on a Nokia 6233 (S40) and a N95 (S60) and a N73 (S60) with the newest code, and I can confirm without a doubt that its waaayyyy slower on the S60 platform.. Actually, I would use it for the S40 platform but I wouldn't use it for the S60 platform simply because it's just not fast enough :(

Shai Almog

well...
You have full access to the code... Feel free to suggest performance
improvements and benchmark our current offering.

You can also tune significant aspects within your application/theme
to produce faster results keep in mind that a menu needs to paint
both itself and the Form behind it.

> well,
> i tried it on a Nokia 6233 (S40) and a N95 (S60) and a N73 (S60)
> with the newest code, and I can confirm without a doubt that its
> waaayyyy slower on the S60 platform.. Actually, I would use it for
> the S40 platform but I wouldn't use it for the S60 platform simply
> because it's just not fast enough :(
> [Message sent by forum member 'tiger79' (tiger79)]
>
> http://forums.java.net/jive/thread.jspa?messageID=293848
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

chen

Hi,
Are you using an old version?

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> Hello all there,
>
> Until today I was developing my MIDlet using at most 2 commands per Form, then no menu on RSK was displayed. Now i added some more commands and noticed the performance is slower, specially if I click on menu to display the commands. Also I noticed slower performance when I click on a single command without need to displaying the menu pane than when I display the menu and click on the same command. Is this normal? It's something related with early LWUIT code drops s60 performance issues?
>
> I'm displaying an error dialog, and when the command is clicked, on ActionEvent I do the dispose() then show new Form, but the result is the new Form shown, some redrawing glitches, and watching the Dialog until it's disposed. Am I doing something wrong here?
>
> Thanks
> [Message sent by forum member 'kawaiimomo' (kawaiimomo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=291828
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

kawaiimomo
Offline
Joined: 2008-07-10
Points: 0

Hi Chen,

I'm using the latest drop.

It's annoying to have different behaviour if you click directly on a Command and if you display menu, then click the same command.

Best

kawaiimomo
Offline
Joined: 2008-07-10
Points: 0

Hi,

I have another question: when I add more than 2 commands (on 2 SoftKeys phones), the first is located by default at LSK, the RSK holds a 'menu' label and when you display it, the SK options change to 'select' and 'cancel'. Where can I change these literals?

Thanks

Shai Almog

Hi,
you can customize them in the localization resource bundle by adding
"select" and "cancel" keys and installing a resource bundle.
This is demonstrated in the LWUIT demo open the resources.res file to
see a localization bundle and search for its usage in the demo.

> Hi,
>
> I have another question: when I add more than 2 commands (on 2
> SoftKeys phones), the first is located by default at LSK, the RSK
> holds a 'menu' label and when you display it, the SK options change
> to 'select' and 'cancel'. Where can I change these literals?
>
> Thanks
> [Message sent by forum member 'kawaiimomo' (kawaiimomo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=292288
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]