Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jjennings1990 · Mar 16, 2014 at 06:55 PM · optimizationplayerprefsserializationframe rategame save

Does anyone know why continuously saving to playerprefs would cause a performance drop ?

hello all I am working on a project right now and in order to save we serialize a large prefab to JSON and then store this prefab in player prefs .

Along side this we are saving audio files in bytes to the users storage separately and then upon loading bringing all of our saved data together at once . Loading doesn't seem to cause a performance drop but saving definitely does after repeated instances of saving data .

So my question is has anyone had an experience where repeatedly saving data to playerprefs has caused the frame rate of the app in general to slow to a crawl ? It's more of a gradual degradation after we continue saving repeatedly and when we store this data it is taking us from a solid 60 FPS to 17fps after 12 or so saves.

At one point we were saving all our data in the object then serializing the entire object and saving that to playerprefs. This would cause 2 minute load times when we saved to all slots so we eventually broke the save data out into individual playerprefs keys and this helped a ton .

I tried running the garbage collector but it didn't seem to be helping much once we recorded crashes and FPS trends , are there any other suggestions on why our save is slowly wearing down our fame rate ?

just to give a little more insight one playerprefs save that we are producing creates roughly 4mb's of data for every 30 seconds of data we recorded .

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Serialize game objects in Unity~ 1 Answer

Saving players progress in ScriptableObject asset 1 Answer

whats the best way to save a large list of variables? 1 Answer

How to add strings in a list AND be able to save it and load it? Using playerpref OR serialization 2 Answers

How can I save a series of instantiated objects from an array? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges