Author Topic: Sometimes my game suddenly gets a heavy fps dropping.  (Read 760 times)

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Sometimes my game suddenly gets a heavy fps dropping.
« on: December 10, 2013, 04:14:38 am »
My game runs in 55+ fps normally, but sometimes could suddenly drop to 10- fps, and  resume to normal(55+fps) after several seconds(8 - 20s).

First I doubt other processes kill too many cpu load, but when the fps-dropping occur, I watched the total usage of cpu with android's tool(system information), seems the cpu load is normal(without a suddenly increase, and there is enough idle load).

Then I doubt the GC and incorrect Thread.Sleep() in game loop(there is a mechanism to limit the fps to save power). But I have not check this due to the hard reappearing.

All above is about cpu, my question is:

Is there any issue with gpu(code\driver) could result in this problem? Please give your options, I will check them, thanks.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Sometimes my game suddenly gets a heavy fps dropping.
« Reply #1 on: December 10, 2013, 07:47:40 am »
It might be the device throttling because it's getting too hot. Most modern devices do this. You can test this by using your device/app in the cold and see if that fixes the lags.

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Re: Sometimes my game suddenly gets a heavy fps dropping.
« Reply #2 on: December 12, 2013, 10:07:38 am »
This may be the reason, I will check it, thanks!