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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

2D Physics CarGame On Android

Discussion in 'Android' started by RCMZ, Dec 29, 2015.

  1. RCMZ

    RCMZ

    Joined:
    Dec 29, 2015
    Posts:
    4
    Hey guys !

    So this is my first game in Unity, it's a 2D physics car game in which you can design your car ! Take a look for yourself :)

    The game is running just fine on my PC (which is a pretty crappy laptop) but it's struguling on my phone (a Oneplus One). I think the issu comes from the suspensions, probably the physics of them (they have both a WheelJoint and a HingJoint). Can you help me understading what's wrong and how I can fix it ?

    Thanks in advance a sorry for the (probably) bad English :p
     

    Attached Files:

  2. outasync

    outasync

    Joined:
    Mar 1, 2014
    Posts:
    48
    What version of Unity are you using and what device OS; Android iOS?
     
  3. RCMZ

    RCMZ

    Joined:
    Dec 29, 2015
    Posts:
    4
    I'm using the latest version of unity, and I can only test it on Android since my only IOS device is an IPad 1 ^^
     
  4. outasync

    outasync

    Joined:
    Mar 1, 2014
    Posts:
    48
    • Edit -> Project Settings -> Quality settings turn on V Sync - Every V Blank
    • If you are making a simple 2D game, delete all the quality profiles except simple and turn v sync on for this profile
    • Before you build your apk go to the Android player settings -> Other Settings, untick 'Auto Graphics API' and only add OpenGLES2 do not use 3 or even add it, its performance is terrible.
     
  5. outasync

    outasync

    Joined:
    Mar 1, 2014
    Posts:
    48
    Make sure when your editing the quality setting that you have the android one selected, highlighted in green means its the default setting for the build and most likely the one you're using.
     
  6. RCMZ

    RCMZ

    Joined:
    Dec 29, 2015
    Posts:
    4
    Woaw I switched to the OpenGLES2 Api and know it's running smooothly as hell ! Thanks a lot guys !
    And do you nnow if using different Android API level changes something ? Like if using the newer ones is better ?