OtterBrowser / otter-browser

Otter Browser aims to recreate the best aspects of the classic Opera (12.x) UI using Qt5
https://otter-browser.org
GNU General Public License v3.0
1.83k stars 277 forks source link

[QtWebEngine] Option for disabling HW acceleration #1074

Open lollox opened 8 years ago

lollox commented 8 years ago

As in title: I absolutely need this option since on my system when a browser (not only Otter, but Firefox, Chromium, Opera, too) has HW acceleration enabled I've lot of graphical glitches (the screen begins to flash continuously, plus lot of other bugs)

Sadly AMD doesn't support my GPU card anymore so I can't have an updated driver and the only work-around is to disable HW acceleration

Emdek commented 8 years ago

@lollox, there is no switch for that in API, but it might be possible to inject --disable-gpu to be passed to QtWebEngine. But since it is done before SettingsManager becomes available it will be hard to make it switchable without recompilation. Assuming that this will work at all (I've got that switch from list of options available for Chrome). :-/

lollox commented 8 years ago

So we've to wait for QT to implement that API (having that as an option in Settings is always a better thing)... I'll look if it's already planned, thanks ;)

Emdek commented 8 years ago

@lollox, it could be hard to make it into API, as AFAIK QtWebEngine needs to know that before initialization...

lollox commented 8 years ago

I don't know enough about programming to understand what you mean :P , but isn't a restart of the browser all you need to re-initialize QTWebEngine ?

Emdek commented 8 years ago

@lollox, it's not matter of restart, it is matter of initialization order, to get value from settings I need Application instance, to pass that value as option to QtWebEngine, but I can do that only by passing it to Application. ;-) So I have to bypass settings somehow, which makes it effectively not suitable to typical user.