DlinnyLag Posted October 5, 2021 Share Posted October 5, 2021 (edited) That script typically offloads any serious work with CallFunctionNoWait on some quest attached worker scripts to avoid holding the effect or blocking. Sure. It is what I expected. But I still don't understand is the "Apply Combat Hit Spell" has matter here? I guess MagicEffect can be started in any other way to handle hits events, not by perk's entry point trigger only. Is there are any special essence in "Apply Combat Hit Spell" usage? Edited October 5, 2021 by DlinnyLag Link to comment Share on other sites More sharing options...
SKKmods Posted October 5, 2021 Share Posted October 5, 2021 because the C++ game engine which perks run under is between 100 and 1,000 times faster than the papyrus interpreter at handling events with no locking or blocking. Yes I have run those tests. Link to comment Share on other sites More sharing options...
PJMail Posted October 6, 2021 Author Share Posted October 6, 2021 @SKK - you mentioned "Can have queue issues" - this has been a concern to me using callfunctionnowait too much.I have wondered how many such calls can queue up on a blocked script before something gets lost.What did you find?I assume one of the reasons you use multiple worker scripts. Link to comment Share on other sites More sharing options...
SKKmods Posted October 6, 2021 Share Posted October 6, 2021 We are getting into a dark corner as I dont really know. I dont have any recollection of calls "going missing" on a regular basis, only taking a loooong time to complete so there must be an internal fifo call queue managing that. Those time delays trigger a switch to a locking queue manager and multiple worker scripts, but only had to do that a handfull of times typically when: configuring large numbers of actors (settlers) OnLoad.processing large numbers of inventory items (scrapping).handling combat hit events in multi actor high ROF engagements (although papyrus is not really performant enough for this). Link to comment Share on other sites More sharing options...
SKKmods Posted October 7, 2021 Share Posted October 7, 2021 Amusingly what we are trying to do is reverse engineer or infer platform behavior from observations. Imagine if we actually had access to the platform operational specs like: Order of execution for event functions. OOOOH NURSE ! Link to comment Share on other sites More sharing options...
DlinnyLag Posted November 20, 2021 Share Posted November 20, 2021 Another interesting question:Are calls of custom (non native) global functions causes lock of script where they defined? Link to comment Share on other sites More sharing options...
Recommended Posts