Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Sep 2015
A
addict
OP Offline
addict
A
Joined: Sep 2015
In regard to performance I wonder if it would be more efficient to check conditions of a reaction timer-based (say, every 2-5 seconds) and then activate the reaction instead of having about 6 checks per second by the reaction itself (an error in the CHECK block of a reaction appeared about this often in the info panel, so that might be the check frequency). Or would running a local timer + checking conditions on the timer event + setting the priority of the reaction be more costy?

Any insight on this would be very helpful to optimize char scripts!


My mods for DOS 1 EE: FasterAnimations - QuietDay - Samaritan
Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
CHECK conditions are evaluated every frame, so timer-based is definitely better performance-wise.

Joined: Sep 2015
A
addict
OP Offline
addict
A
Joined: Sep 2015
Great, thanks again for answering, Tinkerer. I already switched to timers for companion AI and will do this for NPCs as well, where appropiate.

Sadly I won't have time to work on my project this year, there would be some nice things to show already. wink


My mods for DOS 1 EE: FasterAnimations - QuietDay - Samaritan

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5