Jump to content
Sign in to follow this  
nurgl

Script vs conditions

Recommended Posts

Hi,

 

I just replaced in my mod a script which contained checks whether a scene is running (30 of those checks in one script) with a magic effect that is triggered if one of the scenes is running (like 30 ORs).

Is that a good decision performance wise?

Share this post


Link to post
Share on other sites

Conditions are a lot more efficient when it is small-medium things. When you have a ton of conditions though, it's no better than scripting, as it takes more time for the game to go though all the conditions.

30 conditions might be a bit too much. In general, if you can get away with conditions, prefer it over scripting.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

Support us on Patreon!

Patreon
×
×
  • Create New...