Help with hardware of the Arduino Yun

I'm trying to think of a solution for Game machine I'm designing. but I'm kind of out of some knowledge of Linux.

our game station needs a real time processing , this is solved by the Arduino side of the YUN.
and also some kind of web Socket connection, which I believe can be done on the Linux side of the Yun.

Now I seem to have 2 options:

  1. every time I want to start a new game, let the Linux download a code from the socket, and only update and sending from the server via socket. then all game logic are downloaded each time a different game is selected, and should be somhow programmed on the Arduino.

  2. Keep open socket connection, and make all game logic on the server side. it may slow the response of the game. but will make much less codes and logic on the arduino Yun, which has a memory problem anyway...

What do you think ?

Thanks,

3rd option, separate out the core mid-level functions for the yun linux side that would be consistent for all games, i.e. get scaled_capacitive_sensor, get_scaled_mind-sensor etc. these then read data off the arduino side and return to caller.

and then do all the game logic on the host side over a socket to yun, reckon there would probably be a lot of display traffic to host anyway if you put the game logic on the linux side of yun.