Page 1 of 1
Why Html5 game can't run smoothly in OSR mode?
Posted: Tue Mar 04, 2025 1:53 pm
by tad.chen
I run the same Html5 game in SimpleBroser and SimpleOSRBrowser, the website is:
https://www.yikm.net/play?id=4137
Some noise is heard from the game when it runs in SimpleOSRBrowser, but no noise in SimpleBroser. It seems that Html5 game can't run smoothly in OSR mode. Why?
Re: Why Html5 game can't run smoothly in OSR mode?
Posted: Wed Mar 05, 2025 10:52 am
by salvadordf
Hi,
Try enabling hardware acceleration with the GlobalCEFApp.EnableGPU property.
Web browsers in OSR mode are always slower than browsers in normal mode because the web contents are rendered in a much different way.
Re: Why Html5 game can't run smoothly in OSR mode?
Posted: Thu Mar 06, 2025 1:03 am
by tad.chen
Hi,
It's the same no matter whether the GlobalCEFApp.EnableGPU property is enabled or not.
Re: Why Html5 game can't run smoothly in OSR mode?
Posted: Fri Mar 14, 2025 6:50 am
by tad.chen
Hi,
Can One Browser support both OSR mode and No-OSR mode? For example, one tab runs in OSR mode, but another tab runs in No-OSR mode.
Re: Why Html5 game can't run smoothly in OSR mode?
Posted: Fri Mar 14, 2025 7:24 am
by salvadordf
The PopupBrowser demo uses that configuration.
Lazarus has some issues destructing the browsers in that configuration.
Re: Why Html5 game can't run smoothly in OSR mode?
Posted: Sun Mar 16, 2025 6:22 am
by tad.chen
Thank you for your information! It do can run OSR based chrmosr with No-OSR based chrmosr in one app like PopupBrowser.
But, It seams that only popup chrmosr can change OSR mode. Can default chrmosr do that?
Re: Why Html5 game can't run smoothly in OSR mode?
Posted: Mon Mar 17, 2025 2:28 pm
by salvadordf
You can only set a browser in OSR mode before the TChromiumCore.CreateBrowser call.
It's not possible to change the mode after the browser has been created.
Re: Why Html5 game can't run smoothly in OSR mode?
Posted: Wed Mar 19, 2025 2:47 am
by tad.chen
Thank you!