Dear Shun-ichi Hirabayashi,
many thanks for your quick response, I am really busy with optimising
now, because I will deliver a new firmware for my system in the next
weeks and I want to put in everything that makes the gui smarter and
What I have / What I do:
The CPU is a 180MHz Arm927 with 64M Ram.
Os Linux 18.104.22.168 / (handhelds.org)
Display 320x240 with touchinterface
some interfaces like CAN, 4xRS485,2xETH, USB etc...
I am using widestudio more generic, that means instead of using
the WS-Builder app, I build up the pages from
XML-Files in run time by a parser that places some of the
standard elements of WS (like WSCvButton) on forms. The attributes of this controls are
dynamically changed regarding variables from a plc application running
on the same maschine. So I have a very flexible userinterface for
You mentioned that the actual version of WS is better performing. So I
have to try to integrate my soft with the latest version from your
website. Is there anything special to pay attention for?
You did some calculations with the screen refresh. Does that mean, that WS
is doing a complete screen refresh when I change a part of it like a
22x11 pixel region by let it blinking?
I would think only that small area must be refreshed, or am I wrong?
If it has to refresh the complete screen for each blinking icon,
its clear that it eats a lot of cpu.... In this case the next question
would be, can I "synchronize" the blinking and use one screenrefresh
for all controls on the screen simultaniously?
Not so importatnt at the moment but:
For other reason I changed the position of a button on the screen
dynamically, but it left a track of distorted "shadows" behind on the
moving track. How can I force a screen refresh to clear that left
Another issue that comes into my mind now:
I am planning to build up a chart-plotter for trends of temperatures.
I am playing with the WSCvlineGraph and its helpers.
I am aiming to a look and feel of the old paper plotter, that scrolls
softly underneath a pen. What is the fastest way of drawing the
trends, so that it gives this illusion? I think I must use a direct draw
into the framebuffer to do that fast enough, but I want other standard WS-Controls
around this region as well. How can I do that in a way, that doesn't collide
Sorry for all the questions, but I'm very keen to push the border for
my app. Many thanks for yor help, and I hope we will stay in touch
Thursday, March 26, 2009, 3:16:12 AM, you wrote:
> Hello, Joerg
>> Hello all Widestudio-users, dear Shun-ichi Hirabayashi,
>> I am using widestudio v3.94-1 on a arm cpu with a 320x240 touchscreen
>> in a framebuffer setup.
> What MHz is your cpu's clock?
> Performance of new version of ws is better than v3.94-1..
>> I am using WSCvbtn with two png-pixmaps for a flashing button
>> If I have some more buttons on the screen, I can see that the program uses
>> ca 5% CPU per flahing Button. The pngs are 11x22 pixel graphics. I didn't
>> change the prop "KeepPixMapCache", so it should be true.
>> What can I do to minimize the CPU resources used by the blinking?
>> Are the two graphic files already cached by WS? Must I use a different
>> graphic fileformat (filetype/colordepth)?
> Once it reads a bitmap file, it will not be read twice and use cache one,
> So, there is no difference in the performance to draw it,
> except for the first loading of the image.
> Loading png file needs cpu resource, on another side, loading bmp file
> needs bus speed
> because bmp's file size becames larger than png.
>> Or , where in the WS source can I look to optimize this part. I am
>> using WS for a scada application, so there is a lot of blinking on the
> Uhm.. Blinking generates many expose event.
> By the way, how many milli seconds to redraw full screen (320x240) in
> your system?
> If it is 50msec, 1 times redrawing of full screen needs 1/20 cpu time =
> around 5%.
>> Other question: I am still looking for some other pcf fonts. At the
>> moment I have only the preinstalled fonts of WS working. I tried to
>> use other .pcf fontfiles, mostly with no success. But here and when I
>> found one, that worked with WS on the framebuffer (no x11!)
>> Has anybody suggestions where to find more fonts? ( I am in the need
>> for big fonts) Is there a font-design or converting tool that can
>> produce WS conform fonts?
> BDF font file is text file, and bdftopcf command generates pcf font file
> from BDF file.
> Probably, it exists in others..
> Best regards,
> Shun-ichi Hirabayashi
> Widestudio-users mailing list