Page 1 of 1
Can i always use OSR mode?
Posted: Wed Jul 10, 2019 3:05 pm
by ForestListener
Hello.
I think, i've turned OSR mode ON by adding this code:
Code: Select all
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.EnableHighDPISupport := True;
Is it enough?
And also i want to know, why OSR mode is not turned on by default? I mean, why not use it always, what is bad in this mode?
Thank you!
Re: Can i always use OSR mode?
Posted: Wed Jul 10, 2019 4:29 pm
by salvadordf
The GlobalCEFApp.WindowlessRenderingEnabled property sets
windowless_rendering_enabled in TCefSettings when CEF is initialized.
These are the code comments for windowless_rendering_enabled :
https://bitbucket.org/chromiumembedded/ ... #lines-206
Code: Select all
///
// Set to true (1) to enable windowless (off-screen) rendering support. Do not
// enable this value if the application does not use windowless rendering as
// it may reduce rendering performance on some systems.
///
Re: Can i always use OSR mode?
Posted: Wed Jul 10, 2019 4:31 pm
by salvadordf
To create a browser in OSR mode you also need to call TChromium.CreateBrowser without a TCEFWindowParent parameter, and you will need to implement most of the events found in the OSR demos.
Re: Can i always use OSR mode?
Posted: Wed Jul 10, 2019 4:52 pm
by ForestListener
salvadordf wrote: ↑Wed Jul 10, 2019 4:31 pm
To create a browser in OSR mode you also need to call TChromium.CreateBrowser without a TCEFWindowParent parameter, and you will need to implement most of the events found in the OSR demos.
Got it. Thank you.