Skip to content
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

Add hardware acceleration setting #524

Merged
merged 7 commits into from
Nov 10, 2023

Conversation

BenCheung0422
Copy link
Member

By default, hardware acceleration is not enabled. With help of #523, this could further reduce around 10%-15% CPU usage (with using GPU) when hardware acceleration is enabled.

Copy link
Member

@Makkkkus Makkkkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have use this as a normal setting.

@BenCheung0422
Copy link
Member Author

Is it because it applies only on startup?

@Makkkkus
Copy link
Member

Makkkkus commented Jul 2, 2023

Yeah, you could make it possible to be disabled by a launch argument.

@BenCheung0422
Copy link
Member Author

For convenience, it could be a setting that require a restart with modified value.

@Makkkkus
Copy link
Member

Makkkkus commented Jul 2, 2023

No, using a launch argument would be more convenient. Both in code and use.

@BenCheung0422
Copy link
Member Author

Then, a launching argument modifying setting value.

@Makkkkus
Copy link
Member

Makkkkus commented Jul 5, 2023

Don't use the Settings class. That will just be confusing.

@BenCheung0422
Copy link
Member Author

The entire setting is removed from settings and preferences. It can now only be disabled by using a flag.

@Makkkkus
Copy link
Member

Makkkkus commented Jul 7, 2023

You haven't fixed this yet. You need to revert the changes related to saving and remove a reference to the setting in OptionsMainMenuDisplay.

Remove changes in loading and settings
@BenCheung0422
Copy link
Member Author

Ok.

@ChristofferHolmesland ChristofferHolmesland merged commit dc94197 into MinicraftPlus:main Nov 10, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants