This might come from the fact that all your save actions create Threads and might interfere with each other. I can't say for sure though, since I still don't fully understand your system.
My bad, it has been some time since I last worked with it. Yes, saving all the variables in one bigger String as I suggested would be redundant, since StarCode does this anyway on its own. Therefore the only thing I can think of now is saving all variables in packs, meaning that you spread out the variables into multiple Strings that you save independently, sorting them by how frequently these values are changed and need to be saved. If thats no option for you then you either need to reduce your amount of variables somehow or if nothing of this works, send a message to the player informing them that the game is currently saving.
The areas where you save the "Player Item Allowed" variable and the "Hero Pick Frequency" are definitely too much for StarCode to handle. The problem is not how big those variables are, but rather how often you repeat the "Store Integer" action. Try merging all those variables into a String and compress it using the StarCode Function "Compress String", then save that string into your bank. Might be a little faster, but I cant gurantee you that.
Do you mind posting your map in here? It's hard to imagine this problem with no real reference. Otherwise you need to describe your whole system a little more and how/when the lag occurs.
In its current state this is just a Bank System since it doesnt handle much more than saving all the values of your game into your bank.
@killduk: Go
This might come from the fact that all your save actions create Threads and might interfere with each other. I can't say for sure though, since I still don't fully understand your system.
My bad, it has been some time since I last worked with it. Yes, saving all the variables in one bigger String as I suggested would be redundant, since StarCode does this anyway on its own. Therefore the only thing I can think of now is saving all variables in packs, meaning that you spread out the variables into multiple Strings that you save independently, sorting them by how frequently these values are changed and need to be saved. If thats no option for you then you either need to reduce your amount of variables somehow or if nothing of this works, send a message to the player informing them that the game is currently saving.
Edit: Will take a look into your new map...
The areas where you save the "Player Item Allowed" variable and the "Hero Pick Frequency" are definitely too much for StarCode to handle. The problem is not how big those variables are, but rather how often you repeat the "Store Integer" action. Try merging all those variables into a String and compress it using the StarCode Function "Compress String", then save that string into your bank. Might be a little faster, but I cant gurantee you that.
Do you mind posting your map in here? It's hard to imagine this problem with no real reference. Otherwise you need to describe your whole system a little more and how/when the lag occurs.
Definitely an issue with the amount of integers. Do you really require so many? What are you saving with them?