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
Validate maximum memory allocation #436
Validate maximum memory allocation #436
Conversation
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
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.
Tested with my memory reserved hardwere.
- Allocate more then 6.9 GB Test passed. instance lunches with 8 GB
Looks good to me
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.
updateThresholds
is duplicated. Apart from that (mostly) looks good. Maybe sysMiB could be static
?
It is. But sadly, all instance-override settings are like that. We need to clean that up in the future. |
:P seems like Prism does that a lot (likely inherited from MultiMC). Maybe you could still make the variable static? |
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.
looking good to me!
I was gonna say that it would perhaps make sense to also fix #427 in here, but I wasn't able to reproduce that issue neither here nor or develop, so idk 🤷♀️
That issue only occurs with the setup screen 15-31-24.mp4 |
ah, that makes a bit more sense xD well then, this PR needs to bump the maximum memory in that place too |
Ideally, all settings pages should just be able to handle both global and instance-specific pages, depending on how they were instantiated. |
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
well, yeah, but in this particular case, even if we did that, there'd still be some duplicate code with the widget for the wizard :| |
Closes #426
Add a small checkmark/cross/warning symbol to the memory setting to tell the user if their input is a good idea or not.
Also raise memory limit to 1 TiB