Performance: Why persistence stores player progress
MEDIUM IMPACT
This affects how quickly a game can load saved progress and resume without delays.
StartCoroutine(SaveProgressAsync(largeJsonString)); // saves data off main thread
PlayerPrefs.SetString("progress", largeJsonString); PlayerPrefs.Save();| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Synchronous save on main thread | N/A | N/A | Blocks frame rendering causing stutter | [X] Bad |
| Asynchronous save off main thread | N/A | N/A | No blocking, smooth frame rendering | [OK] Good |