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

Make syncChunkWrites false by default #839

Open
Kichura opened this issue May 9, 2024 · 4 comments
Open

Make syncChunkWrites false by default #839

Kichura opened this issue May 9, 2024 · 4 comments
Labels
option An option, config, keybind or manifest change

Comments

@Kichura
Copy link
Member

Kichura commented May 9, 2024

What config to change

syncChunkWrites=true -> syncChunkWrites=false via the vanilla's options.txt file.

Why should it be changed

By default this feature causes region files to be opened in synchronous mode and is only enabled in Windows since 1.16 Pre-Release 3, However it has some unintended side effects such as causing world savings to become horribly slower than expected which is apparent in certain Linux distros when exiting minecraft servers using the stop command.

Additional details

While this doesn't really change anything in terms of optimizations (or might for some?), it does resolve some annoyances when dealing with backend lags in this case. However this is disabled by default on many servers such as PaperMC which is the reasoning why i thought of making this issue in first place.

@Kichura Kichura added the option An option, config, keybind or manifest change label May 9, 2024
@Madis0
Copy link
Member

Madis0 commented May 11, 2024

I'm confused. The wiki and your post says it is enabled by default only on Windows, but you mention that "world savings become horribly slower [...] in certain Linux distros [...]".

So what does Linux distro slowness have to do with Windows?

@Kichura
Copy link
Member Author

Kichura commented May 11, 2024

I'm confused. The wiki and your post says it is enabled by default only on Windows, but you mention that "world savings become horribly slower [...] in certain Linux distros [...]".

So what does Linux distro slowness have to do with Windows?

This option is actually the default on vanilla servers [regardless of the OS] which means it's still bad to leave it enabled since managing region files in synchronous mode is absolute crap regardless of OS - pretty much should not be enabled at all in case any more performance loss happen.

@Madis0
Copy link
Member

Madis0 commented May 12, 2024

This option is actually the default on vanilla servers [regardless of the OS]

So... it is a server problem, if it is default enabled on there but not on all clients?

I feel like there is not really a reason for FO to touch it, considering Mojang did not add any UI option to touch it, and because FO has FastQuit anyway.

@Kichura
Copy link
Member Author

Kichura commented May 12, 2024

This option is actually the default on vanilla servers [regardless of the OS]

So... it is a server problem, if it is default enabled on there but not on all clients?

I feel like there is not really a reason for FO to touch it, considering Mojang did not add any UI option to touch it, and because FO has FastQuit anyway.

FastQuit does not solve the problem when the value was set to true, therefore this is not an ideal workaround for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
option An option, config, keybind or manifest change
Projects
None yet
Development

No branches or pull requests

2 participants