Optimization and Attributes
ingenious.applications
Member Posts: 102
My app relies upon a world map that contains many cities (50+). Each city has roughly a dozen attributes that are not constantly updated, but enough to keep track of the city's status, income, etc. Since the attributes are not constantly updating, would there be an optimization issue with the amount of attributes that would be in the app?
Secondly, would there be an optimization issue when saving/ loading that many attributes?
Secondly, would there be an optimization issue when saving/ loading that many attributes?
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Philadelphia-Airport: (text) open/closed
Philly-Railway: "
Philly-Seaport: "
Philly-Hospital: "
.... For all city services
Philly-research-prog: (real) range .001 to 2
Philly-Military: (text) active/inactive
Those are most of the attributes for one city. Being that a service has to know when to shut down or open...and to know the causes of the action, I figured the only way to go would be to have attributes for each city. There can be multiple changes for multiple cities on any given "day". Given that, I can't wrap my head around how I could make it all work with tables. I'm fine using attributes...as long as I don't take a performance hit from having several hundred attributes. Keep in mind that constrain and interpolate behaviors are hardly used in my app. I know it'll take a lot longer working in save/load features with so many attributes.
Thank you for your input thus far.
I wish having so many attributes wouldn't potentially bog down the system. Otherwise, I would be able to finish this easily.