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 man007 · Oct 13, 2014 at 08:15 PM · androidscenefpsgame

Why my game's FPS drop every time I change scene (Android Game) ?

Hello, I have a very weird problem. Every time I load my game on my android phone it seems to work greak with 54 to 56 FPS. But when I am loading another scene and return back to my previous scene the FPS drop to 38 - 40. My game has a mane scene where is the game paused and when I press the screen the game starts. That's my starting screen, but when I load another scene and return back I get this problem. Moreover all gameobjects reset when I am changing scene I am not keeping anything with DontDestroyOnLoad(). Any idia what may cause this?

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 richyrich · Oct 14, 2014 at 12:16 AM 0
Share

If you're "not keeping anything with DontDestroyOnLoad()" surely everything will then get destroyed - hence everything reset when a scene is re/loaded. If on the other hand that (not) was a typo, then when you reload the screen you will have the undestroyed item and the newly initialised item (from loading the scene again) - but unless you have held on to the original object handle/(s), the data will seem to have reset... you would in fact be looking at the new version of the item. The duplication of objects could then be slowing down the game? Just a guess

avatar image JanusMirith · Oct 14, 2014 at 12:36 AM 0
Share

Are you loading the scenes as additive?

avatar image KayelGee · Oct 15, 2014 at 08:42 AM 0
Share

How is it behaving inside the editor? Is it using more memory after you change the scene back? If it does then you might have some references of Objects which can't be garbage collected. This is called a memory leak. This is hard to track down especially when you're not used to manual memory management.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by man007 · Nov 12, 2014 at 05:42 PM

Ok, I fixed it. The problem was that every time a scene was loaded a banner ad was created but the banner was never destroyed.

Comment
Add comment · Share
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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Aiming down a gun 1 Answer

unity free selling game in android market 1 Answer

Horror Game AI script recommendation? 1 Answer

Android development app and building help 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