Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 When should I use global, instance, local, and constants in event systems?
#6
Global variables are not resource hogs. I wonder where you found that myth.
I just tested putting 100 000 global variables in my anti lag test bench. No noticable difference. The only difference was an increase in memory usage. With 100 000 global variables it is significant, with 10 000 it is not.
In practice its the design issues rather than performance issues which causes problems.
One could naturally imagine global variables being created in some dynamical way and then leak out in such a way that there keeps getting more global variables. But that is really an unlikely situation.

*hugs*
- Zeriab
Reply }


Messages In This Thread
When should I use global, instance, local, and constants in event systems? - by Zeriab - 12-28-2008, 07:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Popular Battle Systems kyonides 6 6,456 02-24-2022, 10:40 PM
Last Post: kyonides
Brick Common Event Library (Development + Brainstorm thread) PK8 3 9,084 02-11-2016, 09:25 PM
Last Post: JayRay
   What do you dislike in ATB Systems? DoubleX 18 22,377 06-13-2015, 05:03 AM
Last Post: DoubleX
   What Makes an Event System DerVVulfman 8 13,023 01-19-2010, 09:07 PM
Last Post: Bolt
   What is "event scripting?" PK8 11 16,392 12-19-2008, 11:20 PM
Last Post: PK8



Users browsing this thread: