[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Timer on hidden window leads to high CPU load  XML
Forum Index -> Development
Author Message
dkhanzhyiev

Active

Joined: 11/11/2015 10:21:27
Messages: 10
Offline

Hi
when there is active timer on page and window with this pages is hidden (in our case whole client is hidden with system tray), the timer heart beat listener calls
Page.callServerWhenPossible - which checks for
getOwningDialog().isShowing() is false
and postpones the call to event queue, on next queue loop nothing is changesd so the call is again added to queue and so on

This leads to unnecessary high CPU load.

UPDATE: We actually need this timer to run while window is hidden. So there is no need to delay roundtrips until window is shown.
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

OK, got it. Will change for next update ("today").
Regards, Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...is now solved (20151207).
Regards, Björn

Björn Müller, CaptainCasa GmbH
dkhanzhyiev

Active

Joined: 11/11/2015 10:21:27
Messages: 10
Offline

Yes!
Thanks.
dkhanzhyiev

Active

Joined: 11/11/2015 10:21:27
Messages: 10
Offline

It looks like the issue was not resolved completely.
There are still complains about high CPU load in that hidden window with timer, when this window is initially hidden. When the window is shown then hidden back - CPU load drops to normal (after it is shown).
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...ooops. you start the UI with initial state "closed"? ... So, yes, the correction of last week only is active after the first opening of the window. We currently do no see if the window is not active due to it's just in the build up process or due to being hidden...

will check, asap...

Regards, Björn

Björn Müller, CaptainCasa GmbH
Admin

Power User

Joined: 21/11/2007 11:36:10
Messages: 37
Offline

Hi, I am just uploading a version to overcome this. Will tell you, when upload is finished. Regards, Björn
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...update 20151214_2 is available....

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team