Stop Game Lag After A Minute Of Gameplay.

Discussion in 'How Can I...?' started by Jaky1, Feb 15, 2017.

  1. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    I have a game mode in my game and while I am playing it like for a minute or so, it starts to lag when I reach like 30 points.

    My game has only 1 atlas - and a 3 minute music I think. Very low size game. it does not happen any other world only this one in which I am moving upwards.

    Anybody's help would be appreciated. Thanks!

    @meremy @blad300 @playsgames6666 @Christoph @Nihat Thanks guys
     
  2. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Depends on whats going on in that mode.
    Are using any effects- particles.
    how about logic- transform.
    I know some times if you over load a scene with lots of logic pieces it can become slow and laggy.
    Also noticed on android that particle effects can do it as well.
    Cant really help without knowing what you have going on in it. maybe it could be just a certain scene your hitting and its happening.
    Take note if its the same scene it happens on, then look at whats going on in it, if its the same scene all the time, reduce whats happening in it until its smooth.
     
    Jaky1 likes this.
  3. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    - Make sure you clean the project
    - Deletion Threshold is a given :p
    - Did it happen on only one device ? Try to test on another one
    - Same thing happened to me on a single scene where a drop in fps and in color intensity drops for like 1 second. but could not fix it. It was due to a lot of objects on screen
     
    Jaky1 likes this.
  4. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @playsgames6666 @meremy Everything is clean. However YES i have particle emitter attached to my character. I haven't really noticed if it happens only on a particular scene. If it is due to the particle emitter then is there anyway to fix it? Thanks guys
     
  5. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
  6. runrollgames

    runrollgames Boxer

    Joined:
    Jan 14, 2016
    Messages:
    77
    Likes Received:
    27
    You might be testing your game on android device. As per my observation, almost all BB games lag on Android devices. BB games plays fine on Iphone Devices ..
     
    Jaky1 and blad300 like this.
  7. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    Try to disconnect from the internet, can be by downloading the advertising (Banner or Interstitial)
     
  8. ramiucef

    ramiucef Avid Boxer

    Joined:
    Oct 3, 2015
    Messages:
    373
    Likes Received:
    177
    remove banner from gameplay scene
     
    volcank likes this.
  9. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    [​IMG]

    The question of the questions;). What is your Back Deltetion Threshold and SIdes Deletion Threshold?
     
    volcank and Jaky1 like this.
  10. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,485
    Likes Received:
    890
    I just had this issue with my Stickman game. After running so far, within 30 seconds, games frame rate dropped hardcore. Took deletion thresholds from 1000x1000 down to 200x200. Problem solved. What its doing is keeping objects that you passed and already left screen in memory. Lowering it makes them delete shortly after leaving screen, allowing game to continue ahead smoothly.
     
    Jaky1 likes this.
  11. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
  12. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    My game kevin to go was also extremely hard so you can go back without the frameraten goes down. It went well 2200 Back Deltetion Threshold and SIdes Deletion Threshold 1100. For this I have obstacles installed where one is no longer over it
     
    Jaky1 likes this.
  13. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Thank you for this @Phoebe I was looking for this. I have a problem with my game also but my game is vertical going up. It is a jump tower game. But I also have like objects spawning to left or right going out of the screen. How do you think my thresholds should be? Thank you.
     
    Phoebe likes this.
  14. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    Its ok you can make more side i make a Tower jum game too with 2400 max and Back delete 1000 and the works fine in older devices ;) and with a Lot of Animation .
     
    volcank likes this.
  15. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392



    That is another game but He works great :) with side 2500 Back 1200 ;)
     
    jcalle likes this.
  16. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Thank you so much. It is good to know I can have more in vertical game.I for now optimized like 500 back deletion and 700 for sides which works.fine and tested all the scenes for it.
     

Share This Page