Apr-15-2017, 07:04 AM
My game will be very big,so should i use(abuse) the RAM or hard disc to store data?
If i use RAM,there is a limit that i can store.For a 32 bit computer,i think is 2^32 data.If it reached that number,the game will work horribly and eventualy crash.
If i use hard disc to store data and only open the file and get the value when needed ,then save the value back to the file and close it if it is not needed,it will cause my game to run super slow,because opening and closing file everytime i want to use a variable is a expensive task,but this will let my game world to be the first truly infinite game.(even Minecraft have farlands(the limit),but my method may be able to fix this.)
So what do you think i should do?
If i use RAM,there is a limit that i can store.For a 32 bit computer,i think is 2^32 data.If it reached that number,the game will work horribly and eventualy crash.
If i use hard disc to store data and only open the file and get the value when needed ,then save the value back to the file and close it if it is not needed,it will cause my game to run super slow,because opening and closing file everytime i want to use a variable is a expensive task,but this will let my game world to be the first truly infinite game.(even Minecraft have farlands(the limit),but my method may be able to fix this.)
So what do you think i should do?