• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Is it okay to keep an ini file constantly open?

TheouAegis

Member
It might not save until you close it. If the program crashes, the data might be lost. Not sure though; it used to be an issue in the past.

It won't slow anything down, though.
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
It likely won't have any effect on FPS, but you'll need to close-reopen it time to time to actually save the updated file on disk.

I also made an extension which works with INI files without keeping the actual file open (converts to data structure), so you can open a file once and then keep updating it and calling file_ini_flush to save the changes to disk without having to close the file.
 
Top