Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 s7arbvck · Sep 05, 2011 at 09:09 AM · iphonememory-leakipodslow down

progressive slowdown of game...

Hi, all,

My game is getting very close to completion, and uses the standard progression model suggested in Unity games:

Level 1 -> Loader Scene -> Level 2 -> Loader Scene -> Level n

The problem is that as I play further into the game, the frame-rate drops, even though all the scenes are based on the same "core" scene.

This doesn't appear to be due to a memory leak (I have code to check the components in memory during the loading scene, and it's not progressively rising), it's not use of static variables (I have none), it's not due to instantiating objects (I use object pools), it's not due to loaded resources (everything that is loaded is unloaded in the "OnDestroy" functions.

At first, I thought it was something to do with the geometry on the level in question, but it turns out that if I do a clean run of the game, access the levels where I see slowdown first, the slowdown does not occur

I'm pretty sure this isn't a memory issue either - this problem is principally seen on iPod Touch 3rd Gen, but the game never uses more than 70mb (at a spike), and usually runs within 65mb.

Recently, I've tried looking for other potential issues, like problems with pre-caching textures, so set up "Cache cameras" at the start of each stage, but this hasn't affected anything.

Anyone have any ideas?

Cheers,

SB

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Tct1856 · Sep 05, 2011 at 10:56 AM

How about using Unity's profiler to determine the problem?

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
avatar image
0

Answer by s7arbvck · Sep 05, 2011 at 11:01 PM

The profiler doesn't seem to add anything to the equation, unfortunately. The key thing I'd be looking for to attempt to find memory leaks is an increase of in memory objects in the Loading scene - this doesn't happen. The number is pretty solid - does have variation, but not consistently creeping upward...

I'd like to look at the game in the Allocations Instrument from XCode, but unfortunately this seems to stop recording whenever the game changes scenes, and there doesn't appear to be a way to restart it...

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How do I read XML on iPhone? 3 Answers

Can I use a user's mp3 music as background in an app? 2 Answers

Having trouble with iPhoneUtils.PlayMovie 2 Answers

iPod touch is overheating and crashing 0 Answers

Object references listed in profiler but not in hierarchy. 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