Mod threading for increased performance
Posted: Thu Jul 13, 2017 4:58 pm
What if you could define mod to use threading? Some mod that just calculate remaining ore or just monitor something and display text output to GUI don't need to fight for precious update time they could run independently right?
Also factorissimo mod, it runs lot of independent worlds that just transfer resources to main world, but inside of a factory can run in separate thread and do its thing.
How it would work?
Main loop Update ->
Factory 1 thread -> Sync inputs and outputs to finalize -> next cycle
Factory 2 thread ->
Or as you would thread minecraft overworld nether and end you can run main loop independently then just wait for all updates to finish and sync transfers between them.
You could even include big warning like: You are using mods that use threading: mod 1 mod 2 mod 3, continue on your own risk!
Also factorissimo mod, it runs lot of independent worlds that just transfer resources to main world, but inside of a factory can run in separate thread and do its thing.
How it would work?
Main loop Update ->
Factory 1 thread -> Sync inputs and outputs to finalize -> next cycle
Factory 2 thread ->
Or as you would thread minecraft overworld nether and end you can run main loop independently then just wait for all updates to finish and sync transfers between them.
You could even include big warning like: You are using mods that use threading: mod 1 mod 2 mod 3, continue on your own risk!