Re:Dwarf Fortress Creator Explains Its Complexity and Origin...
by imtringued on Friday June 26, 2020 @04:10AM
(#23649804)
>Now, if only we could convince Toady to work on multithreading ....
I have thought about this problem mostly because Minecraft runs like shit when you overload it with 300 mods.
It's much harder than you think. Unfortunately there is no "easy" solution. Converting single threaded code 1:1 would only be possible if you could guarantee that no deadlocks will occur and that requires trickery unique to the problem at hand. It's not really a scalable solution. If you can, you should try to avoid acquiring more than one lock at a time but that also means you will have to rewrite everything to use message passing. Rewrites mean bugs and no new features for a long time.
I have thought about this problem mostly because Minecraft runs like shit when you overload it with 300 mods.
It's much harder than you think. Unfortunately there is no "easy" solution. Converting single threaded code 1:1 would only be possible if you could guarantee that no deadlocks will occur and that requires trickery unique to the problem at hand. It's not really a scalable solution. If you can, you should try to avoid acquiring more than one lock at a time but that also means you will have to rewrite everything to use message passing. Rewrites mean bugs and no new features for a long time.