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

Fix very laggy mipmap slider MC-64581 #3305

Merged
merged 1 commit into from Oct 23, 2016

Conversation

mezz
Copy link
Contributor

@mezz mezz commented Oct 11, 2016

https://bugs.mojang.com/browse/MC-64581

When you move the Mipmap Levels slider in the Video Settings, Minecraft reloads all its textures and sounds immediately. This makes it very hard to change the level to what you want, the game is frozen until everything finishes reloading. If you try to drag the slider from one end to the other, it stops at each level to reload everything for some time.

This problem is made much worse by large texture packs or mods with many textures and sounds, the delay for moving the slider can be very long.

This PR makes is so that resources are only reloaded when you close the Video Options after you've messed with the mipmap control. This way players can move the control freely, and apply the new setting only once.

@Actuarius
Copy link

@mezz added labels [Vanilla Bug]

@Actuarius Actuarius added the Vanilla Bug This request fixes or reports a bug that exists in the base Minecraft game. label Oct 11, 2016
@killjoy1221
Copy link
Contributor

killjoy1221 commented Oct 11, 2016

It might be simpler to move the setOptionFloatValue call in GuiOptionSlider.mousePressed() to mouseReleased. It would only effect other ranged options.

Edit: also mouseDragged()

@mezz
Copy link
Contributor Author

mezz commented Oct 11, 2016

That might work, I'll give it a shot.

@mezz
Copy link
Contributor Author

mezz commented Oct 11, 2016

Unfortunately it doesn't work well that way, The value's name isn't updated because setOptionFloatValue also updates the text, and is called in mouseDragged as well as mousePressed.

@LexManos LexManos merged commit b0558c6 into MinecraftForge:1.10.x Oct 23, 2016
P3pp3rF1y pushed a commit to P3pp3rF1y/MinecraftForge that referenced this pull request Dec 1, 2016
P3pp3rF1y pushed a commit to P3pp3rF1y/MinecraftForge that referenced this pull request Dec 2, 2016
@mezz mezz deleted the mipmap-slider branch June 4, 2018 00:15
@MasterBuilder747
Copy link

im sorry, im using 2847 and this issue still persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vanilla Bug This request fixes or reports a bug that exists in the base Minecraft game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants