skywardmc / threadtweak

Improve and tweak Minecraft thread scheduling (again!)
https://modrinth.com/mod/threadtweak
MIT License
24 stars 6 forks source link

feature request #14

Open copilot-lover opened 7 months ago

copilot-lover commented 7 months ago

When Minecraft is loading, most of the loading process is handled by the rendering thread, as indicated by the game logs:

[Render thread/INFO]: [Spectrum] Starting Common Startup [Render thread/INFO]: Registered the class blah.blah.blah............. [Render thread/INFO]: Created: 512x256x1 minecraft:textures/atlas/beds.png-atlas

However, since the rendering thread is responsible for the, well, rendering, this can cause the loading process to appear frozen to the user. Windows may even display a message stating that "Minecraft isn't responding," even though the game is still loading.

To address this issue, one solution would be to move the rendering process to a separate thread. Alternatively, a dedicated loading thread could be created to handle the loading process separately from the rendering thread, resulting in a smoother and more enjoyable loading experience for the user.