Global Variables?

Started by Suddz on

Topic category: Help with MCreator software

Last seen on 19:36, 28. Mar 2024
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)

Last seen on 19:36, 28. Mar 2024
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!

Anything that ticks a lot…
Fri, 02/03/2023 - 18:14

Anything that ticks a lot will slow-down the game, how much depends on how much it is used