Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

OSR halt when resizing frequently

Post Reply
tad.chen
Posts: 104
Joined: Fri Jan 04, 2019 1:39 am

OSR halt when resizing frequently

Post by tad.chen »

When I test the simpleOSRBrowser program in DEMO by resizing the window frequently and quickly, the UI halts and has no response.

But If I do the same test in simpleBrowser, it will not halt.

Only OSR has this problem.
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: OSR halt when resizing frequently

Post by salvadordf »

That's a known issue :
https://github.com/salvadordf/CEF4Delphi/issues/133

It appeared some months ago with a CEF3 update. There has been some issues and fixes in CEF3 since then that might be related to this but we are still affected by this problem.

There's another CEF3 issue that could be related :
https://bitbucket.org/chromiumembedded/ ... causes-the

I should try to find a workaround or even better, scrap the TBufferPanel and create an OSR demo using OpenGL or DirectX.

...but I'm very busy right now :oops:
tad.chen
Posts: 104
Joined: Fri Jan 04, 2019 1:39 am

Re: OSR halt when resizing frequently

Post by tad.chen »

Thank you for your information.

This issue's status is changed to resolved in cef project which you sent to me.

I solved the problem in my app by preventing resizing too rapidly. If too many resizing occur, discard some.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: OSR halt when resizing frequently

Post by salvadordf »

Please, download the latest CEF4Delphi version from GitHub :
https://github.com/salvadordf/CEF4Delphi

That bug is now fixed in the CEF binaries! :D
tad.chen
Posts: 104
Joined: Fri Jan 04, 2019 1:39 am

Re: OSR halt when resizing frequently

Post by tad.chen »

Thank you! It works now. :D
Post Reply