issue-#107 views freezing

Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

issue-#107 views freezing

Post by Ivan Denisov »

Views are freezing while menus interaction of text drop-down operations.

Luowy suggested the patch.
luowy wrote:HostWindows.Idle

Code: Select all

	
		...      
		Services.actionHook.Step;
		Windows.dir.Update(NIL);(*20080122*)
	END Idle;
Luowy, do you know any side effects of this patch?
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#107 views freezing

Post by Ivan Denisov »

I prepared the version for testing:
http://blackboxframework.org/unstable/i ... a1.443.zip

Please, can anyone suggest the idea of benchmark for this issue.
luowy
Posts: 234
Joined: Mon Oct 20, 2014 12:52 pm

Re: issue-#107 views freezing

Post by luowy »

note
this patch only valid for Menus popup and Open File Dialog,and other Dialog controls of OS.
invalid for BB Views which using HostPorts.Rider.Input in a loop block to Handle Controllers.TrackMsg,
like TextViews's text selection ...
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#107 views freezing

Post by Josef Templ »

redmine cannot be reached so I cannot look into the diffs.

"502 Bad Gateway"

- Josef
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#107 views freezing

Post by Ivan Denisov »

Fixed. Something made Redmine down.

Changes:
http://redmine.blackboxframework.org/pr ... b02938df3e
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#107 views freezing

Post by Josef Templ »

Ivan Denisov wrote: Please, can anyone suggest the idea of benchmark for this issue.
What do you mean? Please explain in other words.


- Josef
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#107 views freezing

Post by Ivan Denisov »

I mean that this change can cause unnecessary updates of all windows even if there is no such necessity. I do not how to evaluate this. So if somebody knows, lets check.
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#107 views freezing

Post by Josef Templ »

I agree with Ivan. We must be sure that unnecessary window updates are avoided.
This could lead to CPU overhead or to screen flickering.
This needs a careful investigation before making such a change.

- Josef
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: issue-#107 views freezing

Post by DGDanforth »

Josef Templ wrote:I agree with Ivan. We must be sure that unnecessary window updates are avoided.
This could lead to CPU overhead or to screen flickering.
This needs a careful investigation before making such a change.

- Josef
As a side comment I would add that when a view is first opened it is drawn twice (2) which, to me, is a bug.
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#107 views freezing

Post by Ivan Denisov »

I merged master to this topic branch for make new testing version:
http://blackboxframework.org/unstable/i ... a1.496.zip
Post Reply