Corona SDK Simple Display Challenge

Display onscreen the integers 1 to 100, inclusive, sequentially, in one second or less.

Can this be done in Corona?

I suspect, that if drawing is restricted to 30 or 60 FPS, then it can’t be done. Is this apparent restriction because of the hardware, or is it just a limit that has been programmed into Corona?

I can output to the console at faster than 60fps, so why not to the graphics display?

Maybe you can provide a function like

do_events()

or

poll_events()

or somesuch that can poll events while inside a function and redraw the screen. That way, all events still trigger (touches, etc.) and graphics get updated when the programmer wants, not at some arbitrary FPS limit.

This is necessary for high performance games.

Now that I think about it, is user input polled at the frame rate?!? I really don’t want to go to cocos2d/Obj-C. :slight_smile:
[import]uid: 61132 topic_id: 10793 reply_id: 310793[/import]

@coronasdk730,
if you were to use native functionality using objective-C still you would have something called lag. There are overheads when displaying objects on the screen using the GUI.

So you have to scale the same. in the sense, you have to know the granularity which would be 100/60 = 1.66 frames or the numbers would increment by 1.66 per frame.

If you were to take the time to compensate for lags, then you would scale the same to know what number would be displayed at that moment based on the same granularity.

hope that makes sense to you,

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 10793 reply_id: 39254[/import]