Hello dear forum users.
Im currently creating a dating sim type game in renpy. Im a beginner in regards to programming outside basic univercity lectures so im not completely unable, but getting good performance in the game is something that is very hard for me to estimate, which brings me to my problem:
In my game different locations are only available on different days/daytimes/seasons etc.
The same is true for the location of characters .
My plan was to create a csv for every place, character(multiple since behaviour changes with affection etc).
And that brings me to my question, if i load every csv as a list at the beginning of the game that sounds like a giant waste of ressources considering i only need a single value per entity and gameplay loop (even less since i dont need to check sublocations if the player doesnt even go there)
So should i read the csvs at the beginning of every gameplay loop? is this super slow? How can i read a single element from the csv without loading the whole file into memory?
My current solution would have been to give every place/character a string property that responds to a csv file.
And read it in a function temporarely into memory return the single value and do this for every character at the start of every gametimechange(so my gameplay loop)
Any advice for me?
Im currently creating a dating sim type game in renpy. Im a beginner in regards to programming outside basic univercity lectures so im not completely unable, but getting good performance in the game is something that is very hard for me to estimate, which brings me to my problem:
In my game different locations are only available on different days/daytimes/seasons etc.
The same is true for the location of characters .
My plan was to create a csv for every place, character(multiple since behaviour changes with affection etc).
And that brings me to my question, if i load every csv as a list at the beginning of the game that sounds like a giant waste of ressources considering i only need a single value per entity and gameplay loop (even less since i dont need to check sublocations if the player doesnt even go there)
So should i read the csvs at the beginning of every gameplay loop? is this super slow? How can i read a single element from the csv without loading the whole file into memory?
My current solution would have been to give every place/character a string property that responds to a csv file.
And read it in a function temporarely into memory return the single value and do this for every character at the start of every gametimechange(so my gameplay loop)
Any advice for me?
Last edited: