which one easy to handle and use less resource ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatobanana

hi, which one much easy to handle and take less resource to do, put all data in one JSON, make different JSON for each type? example if have 2 data, first data, player equipment with stats, color path, sprite path and gender. The other one just color path, sprite and for mob.
similar to first question , which one much easy to handle and take less resource to do,if i have player, npc and mob should i make different autoload or put all together in one autoload?

:bust_in_silhouette: Reply From: LoneDespair

Structure them in a way that, you load them, when you will/might need them

example: Do you need to know the equipment of “Alex npc”, when you load the stats of “Steve npc”?

Although tbh, Unless your game is going to save tens/hundreds of thousands of attributes, you might be able to get away, with saving/loading most in-game data inside a big dictionary/json or separate them in a way that’s easier for you to deal with
(Don’t forget to use a separate thread, for saving a large dictionary midgame)

Or if you want something more “professional” and scalable, might wanna give GodotSQLite a try, I think it suits the game you’re trying to make very well