mojira.dev
MC-202953

DataFixerUpper on startup causes excessive CPU usage

Insane lag spike for a few moments while starting game, cpu usage maxes out all of my 8 threads and ram usage constantly above 2GB, this makes my PC temporarily unusable until MC loads. This is incredibly annoying as I normally am doing something else while waiting for MC to load and my PC gets too laggy to do anything. The lag is mostly tolerable for vanilla, however this slows down load times and is especially apparent on modded clients with forge installed. I have no idea why this keeps happening as it didn't do this previously.

How to replicate:
This started happening to me when I started experimenting with commands, more specifically the /data modify command. I have no idea why this would affect performance while loading the game but apparently it does.

UPDATE 2022/07/03: I haven't touched this report since I made it in 2020 and I feel like I should have. As many people have pointed out in the comments this is indeed caused by the DFU. It still affects 1.19.1-pre2 although now that I am on a different system (Core i5-9300H with 8GB DDR4 and an SSD) this issue is less apparent, however on lower end systems this issue will probably be a lot more visible.

Linked issues

Attachments

Comments 30

Please provide a screenshot of your game with the F3 debug screen enabled.

Confirmed also for macOS 10.14.6 with Oracle java: 1.8.0_77

I have a lag spike (high CPU usage) when

  • starting any Minecraft Version from the Launcher

  • starting any world from a running minecraft instance

This does happen, my pc freezes for a bit while loading the game or world, but I may have reasons for it happening

I believe this is most likely caused due to the amount of data fixes the game has to build when the game starts (which has gotten worse since 1.16), possibly related to (if not a duplicate of) MC-188163.

20 more comments

I finally updated this with more info.

Can this be reopened? Is there still more info needed?

This ticket has already been resolved as Invalid, please create a new ticket for this issue.

Andronachi Marian

Same here. Why takes 3 minutes to drop the CPU usage from over 90% to normal.
The game just stays in menu.

[media]

No longer affects 1.19.4-pre1+ as the datafixer has finally been patched for the client.

MicherBugs

(Unassigned)

Confirmed

Performance

cpu, datafixerupper, lag

1.16.3, 1.16.4 Release Candidate 1, 1.16.4, 1.16.5, 1.17.1, ..., 1.18 Pre-release 4, 1.18 Release Candidate 3, 1.18, 1.18.1 Pre-release 1, 1.18.1 Release Candidate 2

Retrieved