Simple lag issue.. HELP

I created a number which is incremented by 1 every 300 milliseconds using timer.performWithDelay. Although the numbers increment fairly quickly, this seems like a simple task yet when I build it and test it on my nexus 4, the incrementing numbers seem to lag slightly and do not increment as smoothly as on the PC. Is there a way to fix/improve this issue?? The incrementing numbers will play a large part in the app…

Thankyou

Farid.

I’ve seen this problem on Android devices. Some devices have it more than others. Apple devices don’t have the problem though.

It’s all down to how good the hardware is…

Perhaps if you use bitmap font the lag would be reduced? 

@jonjonsson

Didn’t think about that one! Yes, that should speed things up…

Ah wow wasn’t expecting a reply to this!! Thanks guys, it would make more sense to use bitmap fonts. Is it something done simply which can be explained over here or shall I go on a trip through the internet and learn??!

Thanks for your replies!

Farid

I’m on a Mac, and use these tools:

GlyphDesigner (http://71squared.com/en/glyphdesigner)

TextCandy (http://www.x-pressive.com/TextCandy_Corona)

Okay thankyou, I’m on windows but I’ll see what there is to do.

Also, I’m new here so I don’t know if I’m allowed to do this…

But another problem… 

using Storyboard, I have a menu scene, a GAME scene and a gameover scene, pretty simple…

The game transitions through all screens absolutely fine, until the GameOver scene. 

The GameOver scene has a “play again” button which is set to go back to the GAME scene.

The GAME scene contains the numbers increasing rapidly like I said using a timer.performWithDelay and a TARGET number.

If the rapidly increasing numbers rise above the target number, the GameOver scene is called.

If I press “play again” in the GameOver scene, it heads back to the GAME scene but the timer is still running and in turn moves back

to the GameOver scene…

If I do   timer.cancel(timer1)     in the same function that calls the GameOver screen when the numbers rise above the TARGET number, the “play again” button leads back to the GAME scene but the timer is paused at where it was when the GameOver scene was activated.

I know I’m finding it difficult to explain but I literally have no idea. 

and if I’m not allowed to do this then let me know

thanks.

@farid

You’re hijacking your own thread  :wink:

You should create a new post with the new issue. That way others can also read about the issue and help…

Appreciated  :stuck_out_tongue:

I’ve seen this problem on Android devices. Some devices have it more than others. Apple devices don’t have the problem though.

It’s all down to how good the hardware is…

Perhaps if you use bitmap font the lag would be reduced? 

@jonjonsson

Didn’t think about that one! Yes, that should speed things up…

Ah wow wasn’t expecting a reply to this!! Thanks guys, it would make more sense to use bitmap fonts. Is it something done simply which can be explained over here or shall I go on a trip through the internet and learn??!

Thanks for your replies!

Farid

I’m on a Mac, and use these tools:

GlyphDesigner (http://71squared.com/en/glyphdesigner)

TextCandy (http://www.x-pressive.com/TextCandy_Corona)

Okay thankyou, I’m on windows but I’ll see what there is to do.

Also, I’m new here so I don’t know if I’m allowed to do this…

But another problem… 

using Storyboard, I have a menu scene, a GAME scene and a gameover scene, pretty simple…

The game transitions through all screens absolutely fine, until the GameOver scene. 

The GameOver scene has a “play again” button which is set to go back to the GAME scene.

The GAME scene contains the numbers increasing rapidly like I said using a timer.performWithDelay and a TARGET number.

If the rapidly increasing numbers rise above the target number, the GameOver scene is called.

If I press “play again” in the GameOver scene, it heads back to the GAME scene but the timer is still running and in turn moves back

to the GameOver scene…

If I do   timer.cancel(timer1)     in the same function that calls the GameOver screen when the numbers rise above the TARGET number, the “play again” button leads back to the GAME scene but the timer is paused at where it was when the GameOver scene was activated.

I know I’m finding it difficult to explain but I literally have no idea. 

and if I’m not allowed to do this then let me know

thanks.

@farid

You’re hijacking your own thread  :wink:

You should create a new post with the new issue. That way others can also read about the issue and help…

Appreciated  :stuck_out_tongue: