In my game, I have decided to implement a very simple saving system (rather than the default saving system) so I can easily control when saving can occur and not. This includes after a choice is made and when the player quits the game or returns to the menu.
The code looks like this:
Code: Select all
init python:
def SAVE_GAME():
renpy.save("SAVE_FILE")
default allow_save = False # When False, Quitting nor Returning to Menu saves (placed in script of game where appropriate)
The problem is, when I save, the game lags for a second or so. For example, the file size of the Save file is around 237 kB on average. I noticed an autosave file of the same size does not cause any lag to occur. Why is this the case and is there any solution to prevent lag?
Thank you for any help and I hope I explained the issue well.