Search Unity

IL2CPP (ARM64 enabled): Lagging and low FPS

Discussion in 'Android' started by bmmshayan, Aug 13, 2019.

  1. bmmshayan

    bmmshayan

    Joined:
    May 20, 2014
    Posts:
    21
    Hello!

    (Due to the requirement of Google to release 64-bit applications from August 1)

    Problem: The game seriously slows down in ARM64.

    With Mono - works well.
    With IL2CPP (ARM64 disabled) - works well.
    With IL2CPP (ARM64 enabled) - game is laggy and low FPS.

    IL2CPP (ARM64 enabled):
    It was tested on devices without 64-bit support - works well. But when launched on modern smartphones, the game seriously slows down (and does not help reduce the quality of graphics and texture quality).

    My Unity version: 2017.4.30f1

    How to fix this problem?
    Thanks.
     
    Last edited: Aug 18, 2019
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
  3. bmmshayan

    bmmshayan

    Joined:
    May 20, 2014
    Posts:
    21
    Hi! Thanks for the reply.
    This slightly improved the situation, but did not rule out the problem. Sometimes it works fine, but after restarting the game glitches are repeated. The image twitches while moving (Glitches do not depend on the heating of the processor: the game is equally buggy both with a cold device and with a heated one. Also, it is equally buggy both at the minimum of the graphics and at the maximum).

    The game really works well in Mono (for several years)...
    What could be the problem with ARM64?
     
    Last edited: Aug 13, 2019
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    Can you please report a bug? AFAIK we're investigating what's happening there, and an additional repro wouldn't hurt :)
     
  5. bmmshayan

    bmmshayan

    Joined:
    May 20, 2014
    Posts:
    21
    Hi! Nothing to report... There are no warnings, no errors. Only visual image lag.
     
  6. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    Well, that should be enough for a report :)
     
  7. bmmshayan

    bmmshayan

    Joined:
    May 20, 2014
    Posts:
    21
    Perhaps my solution will help someone (for the 2017.4.xx version):
    1. Created a new project and copied your Assets folder into it (rebuild the library).
    2. After rebuilding the project, I set the following settings:
    settings2017_4_xx.png

    The settings (which affected the performance) are highlighted in red in the screenshot.

    Players have been playing this version for more than a day.
     
    Last edited: Aug 18, 2019
    devTunu likes this.
  8. roointan

    roointan

    Joined:
    Jan 8, 2018
    Posts:
    78
    We're having the same problem.
    Disabling stack trace for logs helped a lot, but there are places in the game where game lags.
     
  9. hammoohammad

    hammoohammad

    Joined:
    Dec 8, 2015
    Posts:
    12