Reloading the toml.

How can I force the DH toml to be re-read without interacting directly with the Minecraft window, or without at least going into the DH settings in-game? Say, if I have a script that replaces text in the file following a system hotkey press, how can I trigger my changes to actually be read?
Solution:
Honestly do what you want, you can send a message that is just a dot, or "unfixable" and mark that
Jump to solution
15 Replies
nunkey_mutts
nunkey_muttsOP2mo ago
I'm on Linux, (Nobara 40) if there's some easy human-readable way to just stick the changes in /proc or whatever I'm willing to do that jank is no issue for a solution, it's just that getting into that menu to do anything (turn off rendering and/or generation) when the lag reaches a certain point is unbearable with a mouse
Puhpine
Puhpine2mo ago
I don't think you can really do that without writing a mod that uses DH's api. I could very well be wrong though. About the lag, are you allocating enough ram?
nunkey_mutts
nunkey_muttsOP2mo ago
48gb the lag is 100% acceptable with the options set for playing but I'm leaving it to afk gen with a jjthunder to the max world so I turn off rendering and set the load to the max preset sometimes (not always) when I come to turn it off of go back and forth, my system is brought to a halt 5800x rx 6900 xt 64gb ddr4
Miki_P98
Miki_P982mo ago
That seems like a bit too much RAM for MC, but yesterday I’ve found a mod for which 16 GB was to little so I guess depends on your modpack What are your custom GC/JVM flags?
nunkey_mutts
nunkey_muttsOP2mo ago
none
Miki_P98
Miki_P982mo ago
Turning off LOD rendering during generation is a bad idea There was a memory leak caused by generation with rendering off and I don’t think it was ever fixed That is also a bad idea with such with RAM allocation, some feel GC stutter even at 8 GB, some start to feel it at 12 or 16, but with 48 it should be impossible to miss it. Consider adding some GC tuning flags: https://discord.com/channels/881614130614767666/1304910897658986570/1305234534492803165
nunkey_mutts
nunkey_muttsOP2mo ago
oh... that might explain some things no worries if not, but do you know if looking up to frustum cull the world while generating has the same effect? I also just realised that prism put a "recommended" star next to openjdk 17 but the latest one on my system is 21, so I might swap it out and add the top flags you linked I am still curious about my initial question but really my issue is abusing my resources, so I'll mark it solved
Miki_P98
Miki_P982mo ago
Should have almost the same effect + the effect of not rendering LODs is very small to begin with Setting LOD quality preset to minimum should be enough and it shouldn't help much
nunkey_mutts
nunkey_muttsOP2mo ago
I run the generator at extreme because last I remember that means you only have to run it once for each preset not so anymore?
Miki_P98
Miki_P982mo ago
MC versions were designed with specific JAVA versions, but newer JAVA versions are made so that they can run most of the old apps, using newer JAVA then intended can only improve performance (unless of course you will try to run really old JAVA with JAVA 21, e.g. 6, then the performance might be worse I guess)
nunkey_mutts
nunkey_muttsOP2mo ago
good to know thanks for the help
Miki_P98
Miki_P982mo ago
Not from DH 2.0.0 Generation always generate every chunks at highest quality and goes down from there The only exepction are worldgen mods that have special DH support built in, they will generate LODs at requested detail level, then horizontal quality should be maxed out (vertical quality can still be decreased to minimum)
nunkey_mutts
nunkey_muttsOP2mo ago
oh hang on... should I not mark any solution since technically the initial question has no (easy) solution?
Solution
Miki_P98
Miki_P982mo ago
Honestly do what you want, you can send a message that is just a dot, or "unfixable" and mark that
nunkey_mutts
nunkey_muttsOP2mo ago
thanks lol
Want results from more Discord servers?
Add your server