How do I design a game framework for fast reaction to user input?

Posted by Miro on Game Development See other posts from Game Development or by Miro
Published on 2011-10-29T16:16:40Z Indexed on 2012/07/01 15:24 UTC
Read the original article Hit count: 230

I've played some games at cca 30 fps and some of them had low reaction time - cca 0.1sec. I hadn't knew why.

Now when I'm designing my framework for crossplatform game, I know why. Probably they've been preparing new frame during rendering the previous.

RENDER  1 | RENDER  2 | RENDER  3 | RENDER  4
PREPARE 2 | PREPARE 3 | PREPARE 4 | PREPARE 5

I see first frame when second frame is being rendered and third frame being prepared. If I react in that time to 1st frame it will result in forth frame. So it takes 3/FPS seconds to appear results. In 30 fps it would be 100ms, what is quite bad.

So i'm wondering what should I design my framework to response to user interaction quickly?

© Game Development or respective owner

Related posts about architecture

Related posts about game-mechanics