Skip to main content
Fixed the title. Removed fluff.
Source Link
Vaillancourt
  • 16.4k
  • 17
  • 55
  • 61

Why does my Unity Android Game -/Android game get a small amount of frame lag - ONLY WHEN NOT BEING TOUCHED FOR SOME TIMEwhen not being touched for some time?

Ok so I have made a 3d version of space invaders. I made all the assets myself in Blender. I feel that itsit's a very basic game and my Galaxy Note 3 test device should handle it no problem. (although itsAlthough it's a few years old now so perhaps some kind of shader issue or something that my phone not updated enough for ?)

There are 55 enemies all with one mesh each. TheresThere's the flying saucer model and the player model. Then theres

Then there's a plane for a background, oh and 4 defensive meshsmeshes (although iveI've tested without these and the result is the same).

Basically, it all runs superbly  (I have turned down much of the lighting , and graphics quality etc, but have left basic shadows in). However I notice that if the player just lets the phone sit there in game without touching it, there is very slight (but noticablenoticeable) frame lag.

All the enemies have a very short animation which moves its arms a small amount.

I could post the code but its massively unorganisedunorganized and really quite an embaressment hahaembarrassment (HAHA!). Also I'm not sure what parts are relevant so it would be a huge post.

Is there any known issues that can cause the lag only when not being touched? As iI feel like some of my old projects might have had this happening too but they've been deleted now unfortunately so I cantcan't really dabble with it.

Ps. It works smooth as silk in the Unity Editor androidAndroid 'emulator' and as I say, if I actually play the game on my phone itsit's smooth too.

Sadly, I havent yet learn to use GIThub or git in anyway so i cant link you to the actual code, so that will be next on my list of things to do once I have finished this game. If you feel seeing the code worthwhile let me know and I can post it or maybe even just send a zip of the project

Unity Android Game - small amount of frame lag - ONLY WHEN NOT BEING TOUCHED FOR SOME TIME?

Ok so I have made a 3d version of space invaders. I made all the assets myself in Blender. I feel that its a very basic game and my Galaxy Note 3 test device should handle it no problem (although its a few years old now so perhaps some kind of shader issue or something that my phone not updated enough for ?)

There are 55 enemies all with one mesh each. Theres the flying saucer model and the player model. Then theres a plane for a background, oh and 4 defensive meshs (although ive tested without these and the result is the same)

Basically it all runs superbly  (I have turned down much of the lighting , and graphics quality etc, but have left basic shadows in). However I notice that if the player just lets the phone sit there in game without touching there is very slight (but noticable) frame lag.

All the enemies have a very short animation which moves its arms a small amount.

I could post the code but its massively unorganised and really quite an embaressment haha. Also I'm not sure what parts are relevant so it would be a huge post.

Is there any known issues that can cause the lag only when not being touched? As i feel like some of my old projects might have had this happening too but they've been deleted now unfortunately so I cant really dabble with it.

Ps. It works smooth as silk in the Unity Editor android 'emulator' and as I say, if I actually play the game on my phone its smooth too.

Sadly, I havent yet learn to use GIThub or git in anyway so i cant link you to the actual code, so that will be next on my list of things to do once I have finished this game. If you feel seeing the code worthwhile let me know and I can post it or maybe even just send a zip of the project

Why does my Unity/Android game get a small amount of lag when not being touched for some time?

I have made a 3d version of space invaders. I made all the assets myself in Blender. I feel that it's a very basic game and my Galaxy Note 3 test device should handle it no problem. (Although it's a few years old now so perhaps some kind of shader issue or something that my phone not updated enough for ?)

There are 55 enemies all with one mesh each. There's the flying saucer model and the player model.

Then there's a plane for a background, and 4 defensive meshes (although I've tested without these and the result is the same).

Basically, it all runs superbly (I have turned down much of the lighting and graphics quality etc, but have left basic shadows in). However I notice that if the player just lets the phone sit there in game without touching it, there is very slight (but noticeable) frame lag.

All the enemies have a very short animation which moves its arms a small amount.

I could post the code but its massively unorganized and really quite an embarrassment (HAHA!). Also I'm not sure what parts are relevant so it would be a huge post.

Is there any known issues that can cause the lag only when not being touched? As I feel like some of my old projects might have had this happening too but they've been deleted now unfortunately so I can't really dabble with it.

It works smooth as silk in the Unity Editor Android 'emulator' and as I say, if I actually play the game on my phone it's smooth too.

Source Link
Big T Larrity
  • 1.4k
  • 3
  • 30
  • 60

Unity Android Game - small amount of frame lag - ONLY WHEN NOT BEING TOUCHED FOR SOME TIME?

Ok so I have made a 3d version of space invaders. I made all the assets myself in Blender. I feel that its a very basic game and my Galaxy Note 3 test device should handle it no problem (although its a few years old now so perhaps some kind of shader issue or something that my phone not updated enough for ?)

There are 55 enemies all with one mesh each. Theres the flying saucer model and the player model. Then theres a plane for a background, oh and 4 defensive meshs (although ive tested without these and the result is the same)

Basically it all runs superbly (I have turned down much of the lighting , and graphics quality etc, but have left basic shadows in). However I notice that if the player just lets the phone sit there in game without touching there is very slight (but noticable) frame lag.

All the enemies have a very short animation which moves its arms a small amount.

I could post the code but its massively unorganised and really quite an embaressment haha. Also I'm not sure what parts are relevant so it would be a huge post.

Is there any known issues that can cause the lag only when not being touched? As i feel like some of my old projects might have had this happening too but they've been deleted now unfortunately so I cant really dabble with it.

Ps. It works smooth as silk in the Unity Editor android 'emulator' and as I say, if I actually play the game on my phone its smooth too.

Sadly, I havent yet learn to use GIThub or git in anyway so i cant link you to the actual code, so that will be next on my list of things to do once I have finished this game. If you feel seeing the code worthwhile let me know and I can post it or maybe even just send a zip of the project