Jump to content
igneous01

benefits of missionConfigFile?

Recommended Posts

I'm a bit confused about the benefits of using missionConfigFile. On the one hand it is a nice place to define constants and paths to resources, but on the other config lookups are relatively slow compared to a global variable already in memory.

 

If I have a bunch of constants that are being referenced (say on fired handler/hit handler/onEachFrame) does it make sense to even use missionConfig for this purpose?

Share this post


Link to post
Share on other sites

as you say you are talking about constants. so the idea would be caching them into global vars at mission start for fast access throughout run time.

 

benefits would be the class structure. so i guess readability.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×