-
-
Notifications
You must be signed in to change notification settings - Fork 126
Add cfps command #725
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 cfps command #725
Conversation
|
||
public class FramerateCommand { | ||
|
||
public static final IntSupplier MAX_REFRESH_RATE = () -> Minecraft.getInstance().virtualScreen.screenManager.monitors.values().stream() |
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.
Why not make this a method?
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 intended to make it come across as a constant that only rarely changes.
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.
That's not a good reason to not use a method
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.
What's wrong with a supplier though?
Closed in favour of #726. |
Closes #711. The unlimited framerate cutoff is now increased to the maximum of the refresh rates of all connected monitors. This allows people to set their maximum framerate to a value possibly higher than
260
, without effectively setting it to unlimited.