Store
Subscribe
Random hitching on servers? Ryzen 3000 CPU?
Reposting this from General as it didn't get many views.

Ryzen 3000 cpu owners (3500x, 3600, 3600x, 3700x, 3800x, 3900x, 3950x etc), this thread contains a solution to help mitigate hitching/stuttering in Minecraft 1.8.9.

I have already posted this issue over at Hypixel forums, and had some feedback, others are able to reproduce it. Here is the link - https://hypixel.net/threads/random-hitching-stutters-in-hypixel-ryzen-3000-series-cpu-owners.3398488/

The issue : You are connected to a Minecraft server Lobby, many players are spawning around you and your screen sometimes freezes for half a second, stuttering, hitching. If you press f3 in game to open the debug screen, it clearly shows the framerate is "unusually" unsteady, and may look something like this : 144fps - 24fps - 143fps - 23fps - 140fps. Setting a framerate cap and toggling Vsync does not seem to help. It mostly happens whilst in Server Lobbies

Steps to reproduce : Connect to Hypixel (just as an example). Open a Lobby (normal/protype/skywars etc.) Make sure player visibility is enabled. Hold down Alt and press F3 to open the Lagometer (aka frametime graph) on screen. Do you sometimes see very tall white spikes appear on the frametime graph when players spawn on the map? Is your framerate taking a huge hit each time? If not, relaunch Minecraft, test again (sometimes this issue doesn't show the first time after launching Minecraft).

Lagometer aka frametime graph (notice the tall white spikes!)



Debug screen, Framerate fluctuations (notice the sudden drops to 23/24fps!)



Player visibility - If you are using Minecraft 1.8.9, turning Player Visibility to Off may temporarily fix the stuttering/hitching, but we shouldn't have to do this. Unfortunately I can not get this to work in newer Minecraft versions (tested 1.15/1.16)



Potential solution - Instead of hiding players from your screen (which isn't ideal) here is an alternative solution.. You may need to run Minecraft 1.8.9 with Optifine to get this to work (I cannot get it to work in 1.15/1.16). Follow these 3 steps :

1) Reset your Jvm arguments to default (to make sure it isn't affecting performance in any negative way).
2) Launch Minecraft, open Hypixel, make sure that Player visibility : Enabled (so you can see players on screen).
3) As soon as the game starts randomly hitching, and you see tall white spikes in the frametime graph, Open Options, Video settings, Toggle Smooth Lighting Level from 100% to 0%, wait a couple of seconds, then set it back to 100%. After doing this you can now set smooth lighting level to any value you wish.



Here is an alternative solution.. Credit goes to AdelinV2 at Hypixel forums. If the smooth lighting level solution above doesn’t completely stop the white spikes, additionally toggle Render Distance to max (set it all the way to the right), then set it back. Again this may only work in Minecraft 1.8.9 with Optifine.



Return to your game and look at the frametime graph, is it more stable? There are players spawning on screen but no more hitching/stuttering, right? As dumb as these solutions may seem they just work, and from my own experience will keep on working even after switching servers, at least until you restart Minecraft.

Why do these solutions work in 1.8.9 (Optifine) but not the latest version? No idea, I tried both solutions in 1.15 (optifine) and 1.16.2 (optifine), they did not work. Ymmv. Most people will say Hypixel works best with 1.8.9 anyway.

Why is it only happening to owners of Ryzen 3000 series cpu's? I have no idea! I have this issue with my Ryzen 3700x cpu and I have tested it in 3 different motherboards and it still shows up. I have a 2nd pc here and it doesn't happen on that one, although it's using an Intel Haswell Cpu. I'm only reflecting on what I have found out so far, from all the threads and reports I found on the internet, it seems to be solely a Ryzen 3000 issue, but other Cpus may be affected.

Does this issue only happen at Hypixel? No, I have seen this issue occur at other servers too (mostly in busy lobbies.)

Check out this youtube video, which clearly shows the issue and one of the solutions above working :





When testing for performance issues in Minecraft I always start by clean installing vanilla Minecraft without mods. I have tried multiple things including : reinstalling Minecraft (different versions), installed different clients (Labymod/Badlion etc), clean installed different versions of Windows 10, disabled Windows 10 background apps (clean boot), malware/virus scans, allocated more or less memory to Minecraft, increased the amount of computer ram, updated to newer/older versions of Java, tested many different Jvm arguments, installed different drivers, stress tested components and switched out pc components.


Related threads/posts -

https://hypixel.net/threads/guide-how-to-fix-frame-sudden-freezes-when-joining-lobbies-and-game-lobbies-minigames-skyblock.3185400/

https://hypixel.net/threads/lag-spike.3614511/

https://hypixel.net/threads/random-hitching-stutters-in-hypixel-ryzen-3000-series-cpu-owners.3398488/post-26167498

TLDR : Users of Ryzen 3000 series cpus are seeing game breaking stuttering/hitching in Minecraft server lobbies. When players join the map there are sometimes huge frametime spikes which can be seen on the frametime graph. Setting on screen players to invisible temporarily fixes the problem if using Minecraft 1.8.9. Could it be assets related? Temporary solution : (this may only work in Minecraft 1.8.9 with Optifine) - Toggle "Smooth lighting level" to the opposite direction in the video settings then set it back, the stutters/hitching should instantly stop. Additionally, if toggling smooth lighting level doesn't completely fix the issue, set Render Distance to max, wait a couple of seconds, then set it back. You may need to do this each time you restart the game. Unfortunately I have not found a solution for Mc 1.15/1.16, yet. If any Badlion staff or youtubers could look into this issue, it would be greatly appreciated!
 0
PM Link
I have a 3900x and have never encountered such an issue. Will ask for this to be investigated though if other people are having this issue also.
 1
PM Link