Is it ok to use more than 50 PlayerPrefs.setInt
in single Android game? Will it affect the game performance?
First of all there is no limit with number of PlayerPrefs in ANY platforms. But there is a limit of 1 MB in Web player build. Other than that there aint any limit with number of or size of PlayerPrefs.
Generally PlayerPrefs are a bit slow (esp while saving it!) So i always prefer handling it in Start() and OnApplicationQuit() functions. And never prefer to save it in Update or OnGUI or any other function that gets called every frame.
And if it is array go with ArrayPrefs2, that would be better!. IDK about change in performance with number of prefs., And even if there is any i dont think it would be some huge impact. Because in one of my games, i have handled over 300 mb of playerprefs and i didnt find a difference, it was for iOS and android.