Closed mstefarov closed 10 years ago
Good job, was looking for this solution quite some time ago On 21 Oct 2014 19:15, "Matvei Stefarov" notifications@github.com wrote:
Flicker was caused because ProgressBarDisplay class was meant to take over rendering. In multiplayer, it ran in the middle of the main render loop instead -- so both the map and the progress bar kept rendering over each other. Now, the network code inside Minecraft.tick() will keep reading from the network non-stop from the moment LEVEL_INIT is received and until the
whole map is loaded. Maps actually load slightly faster now!
You can merge this Pull Request by running
git pull https://github.com/fragmer/ClassiCube-Client master
Or view, comment on, or merge it at:
https://github.com/andrewphorn/ClassiCube-Client/pull/287 Commit Summary
- Attempting a fix for loading-screen flicker. Singleplayer is currently broken (no idea why).
- Fixed single-player flicker caused by previous commit.
File Changes
- M src/main/java/com/mojang/minecraft/Minecraft.java https://github.com/andrewphorn/ClassiCube-Client/pull/287/files#diff-0 (33)
- M src/main/java/com/mojang/minecraft/ProgressBarDisplay.java https://github.com/andrewphorn/ClassiCube-Client/pull/287/files#diff-1 (2)
- M src/main/java/com/mojang/minecraft/net/PacketHandler.java https://github.com/andrewphorn/ClassiCube-Client/pull/287/files#diff-2 (31)
Patch Links:
- https://github.com/andrewphorn/ClassiCube-Client/pull/287.patch
- https://github.com/andrewphorn/ClassiCube-Client/pull/287.diff
— Reply to this email directly or view it on GitHub https://github.com/andrewphorn/ClassiCube-Client/pull/287.
Flicker was caused because ProgressBarDisplay class was meant to take over rendering. In multiplayer, it ran in the middle of the main render loop instead -- so both the map and the progress bar kept rendering over each other. Now, the network code inside Minecraft.tick() will keep reading from the network non-stop from the moment LEVEL_INIT is received and until the whole map is loaded. Maps actually load slightly faster now!