Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Poor physics performance on low-end devices?

Discussion in 'Unity 5 Pre-order Beta' started by Meltdown, Dec 8, 2014.

  1. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    I have a Galaxy S3 Mini, a one year old device, I've just done the Wheel Collider sample from the upgrade documentation and built to the device. I have a single vehicle with a couple of bouncing spheres in a scene, a mesh collider for a single track and I'm getting a pretty low frame rate. I set the Fixed Time Step to 0.04 and set all the Android optimisations on for Unity 5, but the framerate is terrible?

    I'm guessing Physics and Low-end devices are a no-no? And will be for quite some time still?
    An iPhone 4 would have similar issues, being CPU bound...

    I guess I was magically hoping for PhysX 3.x to just work smoothly on low-end devices :(
     
  2. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Have you profiled to prove the issue is PhysX?

    I have 12 cars with 4 wheels each, a mesh collider track and terrain, 100 capsule colliders for trees, and a few others for some extra pieces...running on iPad 2 at perfect speed, I hate to say it but it may be something you're doing wrong. Even on my old Astro Cyclone (the worst android I could find!) I get a reasonable 20 fps!
     
    DanSuperGP likes this.
  3. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    Yes, it's purely physics performance.

    An iPad 2 has a lot more processing power than an entry level Android phone.
    I don't have any issues on the iPad 2.
     
  4. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    @Jonny Roy
    Can you PM me a link to an APK, or a store link so I can test your app on my device?
     
  5. Roni92

    Roni92

    Joined:
    Nov 29, 2013
    Posts:
    225
  6. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Sorry can't share my APK at the moment, there's a few things in the game I'm not ready to share yet. But based on what you have said it would suggest it's a PhysX issue, 1 GHz dual-core Cortex-A9 which mine is a ARM Cortex A8 1.2GHz (single core) so it might be a bug specific to the Cortex-A9 or a profiler issue.

    As you're is just a basic test scene, why not share the Unity Project, I have 3 android devices, 2 very low spec, 1 pretty high, be happy to confirm so we could submit a bug report. Also, which Beta did you test with? Just in case we're on different versions (last test was Beta 15, Beta 16 is broken deploying to my device :S)
     
  7. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    FYI, iPad 2 and Galaxy S3 Mini have the same CPU, so it is strange to see a difference! It would suggest a bug if the same project is that much worst!
     
  8. WendelinReich

    WendelinReich

    Joined:
    Dec 22, 2011
    Posts:
    228
    Hey @Jonny Roy and @Meltdown, as a fellow android dev i hope you guys can coordinate to file a bug report, and let us know the results here! I'd be happy to help but i only have two high-end devices available at the moment.
     
    Jonny-Roy likes this.
  9. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    I'm not sure what happened, but I re-created the scene and the project, and now I get a smooth 28-30 FPS on my phone??? o_O

    Not sure if something somehow got corrupt, but anyway, I will take it :D

    Sorry for the inconvenience.
     
  10. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Excellent! No need to apologise. I'm glad you raised it and that it turned out to be something silly. I've actually had a weird bug where on a project I upgraded (I've upgraded since 4.3 - 5.16 with each beta) it runs on Blackberry for 20 seconds then crashes...yet if I copy all the files to a new project it's fine! Strange things are there to test us!

    Let me know if you need anything checking on low end devices I'll be happy to help.
     
    Meltdown likes this.
  11. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    Yeah funny though, in this new test scene, I was getting a few crash bugs, and sometimes the scene loaded and everything seemed very jittery, as if the physics wasn't sure what it was doing. Restarting the app seemed to work though.

    If I keep getting it I'll log a bug.
    This is all using Beta 16.