Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 nagarajubhu · Jan 25, 2017 at 08:08 AM · androidunity 5graphicsplayerprefsrestart game

Unity 5: PlayerPrefs/Application data resets Graphics on Android device

I have published an Android game, it works fine in editor, but causing issues in Android devices. After install, it works fine on first run, but after quitting the game and opening again, it starts to lag and show white specs on screen. Also it works fine again after deleting application data or uninstall and reinstall (but problem reappears on restart). Also updating with a new version without uninstall is causing issue. I guess either the PlayerPrefs is corrupting other settings, or the Quality settings are altered when the application restarts.

I tried manually setting the Quality settings in Awake method, but it didn't work. But I couldn't understand why the problem is only happening with playerprefs or application data.

Can someone help me understand the problem? Is there anyone facing similar issues?

Comment
Add comment · Show 3
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
avatar image AR_Rizvi · Jan 28, 2017 at 06:47 AM 0
Share

What device are you using ? have you check for any performance lapse in your app ?

avatar image hexagonius · Jan 28, 2017 at 10:44 AM 0
Share

try installing a development build to your device and debug it through the Editor's Profiler and Console. $$anonymous$$aybe you get the same result there and something that tell's you what's wrong. You can also run it using logcat to log out everything Unity related to see if something happens there

avatar image nagarajubhu · Jan 28, 2017 at 11:54 AM 0
Share

I've already optimized textures and using object pooling for all reusable objects. Also tested the game in editor using profiler, it worked fine. The frame rate is consistently over 60 (sometimes fluctuates between 250 and 60, but I'm sure it didn't cause any problems), and there are no graphics issues or lags. I recently tried overwriting Quality settings in OnEnable method, but it too didn't work. I didn't try testing a development build. I will update after testing.

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

8 People are following this question.

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

Related Questions

i need help. Why my character looks so weird when i change Platform from standalone to android 0 Answers

How to manually edit player prefs file on android ? 1 Answer

Scene not loading properly on android device? 0 Answers

how to enable Compute shaders for OpenGL ES 3.X in Unity 5.1.x? 1 Answer

Android Graphic glitches 1 Answer


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