Subject:
|
Re: NXTway DS powered by LEJOS OSEK
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 10 Aug 2007 10:34:10 GMT
|
Viewed:
|
5101 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
> Could you try the no-so-optimized version (which does 15 useless
> display updates) and see how fast that is? I'll post both versions,
> because what you've done is a very good example.
>
> Steve
I could measure the performance for the three cases and it was also very
interesting for me.
#no-so-optimized(update LCD every time)
Loop count: 2695 (very slow)
Size: 18240byte(includes LEJOS OSEK firmware)
#optimized(LCD is updated every 16msec)
Loop count: 334k
Size: 18144byte(includes LEJOS OSEK firmware)
#no Display (only at the last time)
Loop count: 1825k (thanks GCC)
Size: 18128byte(includes LEJOS OSEK firmware)
For LEJOS OSEK, LCD update is a critical bottle neck. I think this is caused
by using software polling for spi interface. If I could use an interrupt,
the performance should be much better. (but, haven't confirmed yet, so this is
just a guess). I do not say any execuse, if somebody wants to use LEJOS OSEK
for drawing something (graphics) on the LCD, I would not recommend it so far.
Thanks,
Takashi
|
|
Message has 1 Reply:
Message is in Reply To:
![](/news/x.gif) | | Re: NXTway DS powered by LEJOS OSEK
|
| (...) Thanks. I'm just glad to see people are having fun with it. (...) This is actually a bit tricky. Dick Swan (RobotC) asked about optimizing the display update function like you've done (for the same reason you did it). Basically, it means this (...) (18 years ago, 6-Aug-07, to lugnet.robotics)
|
10 Messages in This Thread: ![NXTway DS powered by LEJOS OSEK -Takashi Chikamasa (2-Aug-07 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![RE: NXTway DS powered by LEJOS OSEK -"Dick Swan" <dickswan@sbcglobal.net> (2-Aug-07 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: NXTway DS powered by LEJOS OSEK -Takashi Chikamasa (3-Aug-07 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: NXTway DS powered by LEJOS OSEK -Steve Hassenplug (3-Aug-07 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: NXTway DS powered by LEJOS OSEK -Takashi Chikamasa (6-Aug-07 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: NXTway DS powered by LEJOS OSEK -Steve Hassenplug (6-Aug-07 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: NXTway DS powered by LEJOS OSEK -Takashi Chikamasa (6-Aug-07 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: NXTway DS powered by LEJOS OSEK -John Hansen (10-Aug-07 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: NXTway DS powered by LEJOS OSEK -Juergen Stuber (10-Aug-07 to lugnet.robotics)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|