Difference between revisions of "Creating Multithreaded Skyrim Mods Part 3 - Callbacks"
Creating Multithreaded Skyrim Mods Part 3 - Callbacks (edit)
Revision as of 16:14, 22 January 2015
, 16:14, 22 January 2015no edit summary
imported>Chesko (Updated Thread Manager section.) |
imported>Chesko |
||
Line 375: | Line 375: | ||
In my personal experience, I saw greatly diminishing returns after 10 threads in this example. | In my personal experience, I saw greatly diminishing returns after 10 threads in this example. | ||
* '''1 Thread:''' Avg. 3.4 seconds to complete | * '''1 Thread:''' Avg. 3.4 seconds to complete | ||
* '''10 Threads:''' Avg. | * '''10 Threads:''' Avg. 0.8 seconds to complete | ||
* '''20 Threads:''' Avg. | * '''20 Threads:''' Avg. 0.5 seconds to complete | ||
This could be due to the fact that actors are more "expensive" to place than, say, a Static. In another mod, I saw that using 30 threads reduced my object placement time from 8.5 seconds to less than 1 on average. Obviously, profiling your script is critical to determine if your unique application would benefit the most from more or less threads (or threading at all). | This could be due to the fact that actors are more "expensive" to place than, say, a Static. In another mod, I saw that using 30 threads reduced my object placement time from 8.5 seconds to less than 1 on average. Obviously, profiling your script is critical to determine if your unique application would benefit the most from more or less threads (or threading at all). |