Hi Alex,

I try to more describe my point of event handling. For example try any
qooxdoo component (container like, list, table, tree) and press up
arrow. Cpu meter will jump to 100% and stay in 100% usage until you
unpress the key.

I'm just interested what is needed to handle simple keyboard event
that will not generate any action ? Yeah, there are some attached
event handlers in controls, so there is some code executed, but if I
calculate 30 keys per second, the code that is executed must be huge.

2008/12/8 Alexander Back <[EMAIL PROTECTED]>:
> Hi Petr,
>
> Petr Kobalíček wrote:
>> Hi all,
>>
>> I have taken a note that keyboard handling in qooxdoo is slow. When I
>> press a key, my 1.6Ghz processor runs at 100% speed even that
>> application is doing nothing. This also happens to mouse moving in
>> browser client area.
> First of all 100% CPU is nothing to worry about at all :)
> When the browser (or any other program) is running and executes several
> commands etc. this is done with the maximum power -> 100% cpu. You have
> to start worrying when this full load is lasting for a longer period.
>
>> I have not problem in 100% cpu usage, but for example moving cursor in
>> table, tree or list is also slow due to this issue. Is there some
>> chance that this will be better in the future or it's caused by
>> universal qooxdoo event handling with no chance to be faster ?
> I've just tested the tree and some other widgets and I did not encounter
> at any time a load of 100% cpu and I personally do not think that the
> root of the load you described is the event handling inside of qooxdoo.
>  It would be interesting if you can share some insights with us. What
> do you execute when the selection has changed? Maybe the code executed
> with each change of the selection has some performance issues. Could you
> send over some of your code to look at?

Maybe your CPU is too fast. If you have notebook, select 'max baterry'
power schema and try qooxdoo. This can help you to see how are user
experiences in slower CPUs:-) I have 3 years old notebook (1.6Ghz
turion) and qooxdoo works well, but if i'm running on battery and CPU
clock is only 800Mhz, qooxdoo is quite slow.

But, I know that qooxdoo abstracts many things, so this is not
problem:) It's good API :)

>
>> I'm also wrote game in javascript (using canvas or dom) and I wanted
>> to reuse my qooxdoo experiences to give it good user interface (and
>> implementation of editor) in qooxdoo, but my discovery was that I
>> can't use it due to speed issues (but this is not qooxdoo fault, I
>> just wanted to use it in area that's not created for).
> What do you use for your game? Full-featured widgets or the low-level
> layer of qooxdoo?

I wanted to use full featured widgets, game itself is not written in
qooxdoo, I'm using own small library thats optimized for speed.

>
>> If there are any tips related to event dispatching speed in qooxdoo I
>> would like to read them.
> In my point of view the dispatching speed is not the problem/the
> bottleneck to look at. It would be interesting what's happening at each
> selection change or that piece of code which is executed as result of
> the key press events.

Maybe profiling can help me:)

>
> cheers,
>   Alex
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to