Talk:Creating Multithreaded Skyrim Mods

From the CreationKit Wiki
Jump to navigation Jump to search

My brain hurts, but thank you for making this. If I use this concepto to spawn 25 zombies in my mod sands of time, will it help with resource issues? Nor mayy with Skyrim I have to spawn mobs slowly to avoid Ctds. Wouldn't parallel processing just make it worse for me?

If you have problems with many NPCs crashing your game, then doing it faster won't make it any better. Whether this is a computer hardware / performance issue, or a problem with your load order, you would have to diagnose.
It will not help with resource issues; in fact, multithreading will temporarily consume vastly more resources than doing the same thing serialized, over a shorter period of time. The advantage is that it should get done much faster, which a) places less "overhead" on the Papyrus VM on an ongoing basis, and b) may help guarantee that all of your zombies get placed regardless of Papyrus performance at that moment. You are essentially favoring a resource usage spike over a spread-out swell, if that makes sense.
At the end of the day, only profiling can tell you whether or not this is a good idea. Give it a test on a small scale and if the results are good, try scaling it up.
I will be adding a downloadable working example and adding a Callback pattern (which is slightly different than the Future pattern presented) very soon. Chesko (talk) 2015-01-19T00:21:42 (EST)