- Home /
Other
Should I load all the database items on my android device?
I am working on an item system. In it, my item class has a lot of variables (30 - 60 variables), a sprite, especially the stat class has about 5 levels, the item has a list stat in the number of 1-5. Estimate the number of items in the database will be close to 1000 (I completed the editor to edit the database, but only added a few items to test). And I'm saving it on a single file, loading it once at runtime, maintaining it to the end of the game.
It is too heavy for an android device! This is my first game so I do not have any experience, someone please let me know!
You need to try to compact your classes as best as you can, especially for a mobile game. You can't afford 1000 instances with 60+ variables. That's just ridiculous. Utilize arrays and lists.
Answer by korbul · Aug 07, 2017 at 11:23 AM
It looks like you have a lot of data to handle. Why not use a system that was specially designed to do that? SQLite is a good start. There are lots of resources on how to integrate it with Unity.