For an action (to name it) keyboard based game (5 game keys plus escape and maybe pause) it's better to use processEvent or processKeyEvent (in terms of keeping the class small) ? In the little tests I've done it seems processKeyEvent is lighter, but I'm not really sure.
[size=25pt]WARNING![/size]Danger Will Robinson, DANGER!You're micro-optimizing. All you're going to get for your troubles is a lot of pain, anguish, and impossible to maintain code. Look for the areas where you can get BIG savings, not little ones.
To repeat a famous quote:
First rule of optimization:
Don't do it.Exception for experts only:
Don't do it. Yet.Any hint to how to get the smallest double-buffering technique ?
If it's an action game, just setup the BufferStrategy and be happy. If it's a non-action game, Swing will do it for you automatically.