Jump to content

Script vs conditions


nurgl
 Share

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?

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
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
 Share

×
×
  • Create New...