Global Variables?

Started by Suddz on

Topic category: Help with MCreator software

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global Variables?

The mod I am working on requires a bunch of global varibles and I was wondering if that has any big performance impact?

Depending on variable type,…
Thu, 02/02/2023 - 20:03

Depending on variable type, but generally no if you don't access or write them too often (on tick events, for example)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, all of them are pretty…
Fri, 02/03/2023 - 13:12

Ok, all of them are pretty much math types and, yea, most of them use tickrate. I would guess nbt and local var ticks are the same.

 

Thank you for the answer!