1. Are you ready for the Galaxy S20? Here is everything we know so far!

Gamedev. Unstable FPS when you don’t touch the screen

Discussion in 'Android Development' started by maksim_karelia, Apr 23, 2019.

  1. maksim_karelia

    Thread Starter

    Hello friends!
    Previously sorry for my bad english.

    This is the second time i try to make a game. The first time i abandoned.
    I spent a lot of time to get a stable animation/rendering of my game. I tried to use canvas with SurfaceView, i tried to use gles 2.0 with GLSurfaceView, different game loops. the animation was always not very stable. I tried many things until i noticed, that everything gets very good and smooth only when i actively touch the screen. As I understand, if you don't touch the screen, OS start reduces performance. If you remove your finger for a second from the screen, app starting something like "frame drop", and its not beautiful.

    How can i fix it, and get always good performance?
    Please, help me.
    I can't take it anymore =)))

    I don't want to use any engines / frameworks

    If i run new separate Thread wich contains for example endless cycles with useless calculations - my app looks more stable. But it is not good solution.

    #1 maksim_karelia, Apr 23, 2019
    Last edited: Apr 26, 2019
  2. maksim_karelia

    Thread Starter

    Please leave a comment if you just encountered the same problem.

Share This Page