I ve got a problem in a game project. I develop a bot in video game. The game engine of the game is that the game gives every game tick information about the track and i use that information to make decisions about bot strategy. I want to store that information all these game ticks in a txt file. However, i noticed that when i store the data in txt files my bot fails to make correct decision. Actually the behavior of the bot slow down. Is there efficient way to store my data to ram? My project is in java.
Share
If the bot needs the data to make it’s decision, it’s best to keep all that data in ram.
If you need to save the data for other reasons to disk, you might want to consider only saving the data every minute, and not every game tick, as disk-io tends to be slow.