Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

FPS Android

Discussion in 'Scripting' started by Fekzh21, Feb 18, 2019.

  1. Fekzh21

    Fekzh21

    Joined:
    Dec 29, 2018
    Posts:
    18
    Because my android game has fps slumps
    and what would be a possible solution

    The game goes well, but after playing a few times it drops 20 fps more than normal in the same scene.
     
  2. SparrowsNest

    SparrowsNest

    Joined:
    Apr 6, 2017
    Posts:
    1,919
    Profiling it and seeing whats going on.

    I assume you're accumulating garbage somehow if it gets worse and worse as time goes on
     
    Ryiah likes this.
  3. Fekzh21

    Fekzh21

    Joined:
    Dec 29, 2018
    Posts:
    18
    I think it's my cell phone, because in unity I play several times and the fps do not go down.

    But I still do not understand because first things go well and then the fps go down..
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    4,399
    Sometimes mobile devices will get some heavy network traffic and that will make all apps running lag out a bit, especially if there are apps like Facebook or Twitter or other apps listening to the inbound network traffic and making decisions about it.

    Redo your testing again but this time put your phone into airplane mode, see if you still get weird lags. If you do, then as @SparrowsNest points out, it's time to attach the profiler and start trying to get a handle on where it is choking up.