-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PS-1196] Add option to disable hardware acceleration #2896
Conversation
begin to address #2615 * add HTML portion for checkbox * add text for EN variations
see #2615 * add listener function for the toggle * add hardware acceleration member to state classes
* toggle hardware acceleration in main.bootstrap if set to false * change en descriptions to indicate restart is required
Hi @evelez7, Apologies for the late review, I think this change in general is appriciated but the number of people that have issuse with hardware acceleration is far outnumbered by those it helps. Can we invert the condition, and have HW acceleration be enabled by default. |
also set the enableHardwareAcceleration initialization to false like the rest of the variables
Just pushed a commit to fix this @Hinton. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to rebase this on master, and here are some additional review feedback.
enableHardwareAccelerationText: string; | ||
enableHardwareAccelerationDescText: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be unnecessary since we don't need to conditionally change what text is shown.
const enableHardwareAccelerationKey = "enableHardwareAcceleration"; | ||
this.enableHardwareAccelerationText = this.i18nService.t(enableHardwareAccelerationKey); | ||
this.enableHardwareAccelerationDescText = this.i18nService.t( | ||
enableHardwareAccelerationKey + "Desc" | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once 60-61 is removed, this also needs to be removed.
@@ -889,6 +889,12 @@ | |||
"enableTrayDesc": { | |||
"message": "Always show an icon in the system tray." | |||
}, | |||
"enableHardwareAcceleration": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please only change the en
locale. The other locales are generated by the crowdin integration.
@@ -930,6 +930,12 @@ | |||
"enableTrayDesc": { | |||
"message": "Always show an icon in the system tray." | |||
}, | |||
"enableHardwareAcceleration": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please only change the en
locale. The other locales are generated by the crowdin integration.
@@ -59,6 +59,7 @@ const v1Keys: { [key: string]: string } = { | |||
enableMinimizeToTray: "enableMinimizeToTray", | |||
enableStartToTray: "enableStartToTrayKey", | |||
enableTray: "enableTray", | |||
enableHardwareAcceleration: "enableHardwareAcceleration", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe we'll need a state migration for this. It's a new option that wasn't available before the migration.
@@ -930,6 +930,12 @@ | |||
"enableTrayDesc": { | |||
"message": "Always show an icon in the system tray." | |||
}, | |||
"enableHardwareAcceleration": { | |||
"message": "Enable hardware acceleration" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"message": "Enable hardware acceleration" | |
"message": "Use hardware acceleration" |
"message": "Enable hardware acceleration" | ||
}, | ||
"enableHardwareAccelerationDesc": { | ||
"message": "Enable the application to make use of a discrete GPU. Restart is required." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"message": "Enable the application to make use of a discrete GPU. Restart is required." | |
"message": "By default this setting is on. Turn off only if you experience graphical issues. Restart is required." |
We can’t merge your pull request until you make the changes we’ve requested. As we haven’t heard from you recently, this pull request will be closed. If you’re still working on this, please respond here after you’ve made the changes we’ve requested and our team will re-open it for further review. Please make sure to resolve any conflicts with the master branch before requesting another review. |
Type of change
Objective
Address #2615 which requests an option to disable hardware acceleration in the desktop application.
Code changes
Desktop
Common
Screenshots
Before you submit