Author Topic: multiplayer split-device  (Read 4102 times)

Offline harrbri

  • bit
  • Posts: 7
    • View Profile
multiplayer split-device
« on: December 19, 2012, 05:27:55 PM »
How hard would it be to have one device running a multiplayer game but only displaying the relevant spit-screen and another device
displaying the other side with controller and visual data over Bluetooth or wifi?

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: multiplayer split-device
« Reply #1 on: December 19, 2012, 05:38:19 PM »
Netplay is not currently feasible with the amount of lag on most devices and games.  The phones would quickly become out of sync as one device lagged a little more than the other each cycle.  Eventually better optimization and faster phones will converge for this to become a more realistic feature to add to the app.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: multiplayer split-device
« Reply #2 on: December 19, 2012, 05:47:57 PM »
There is an idea I had which I might try when I ever have some free time, which would involve tracking the number of buffer flips, with frame skip set to manual.  These numbers could be shared between devices once per second, and the faster device would calculate a speed factor based on the difference to slow down by in order to allow the slower device to catch up during the next second, and so on.  In theory this could keep two devices with different hardware and speeds in sync during a game in cases where the difference wasn't too extreme or large lag spikes present.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Vincentmrl

  • Cyan Team
  • long
  • *
  • Posts: 121
    • View Profile
Re: multiplayer split-device
« Reply #3 on: December 20, 2012, 05:01:34 PM »
what about making both phones work together and make them calculate only what they can? like if it was a single phone with 2 screens/controllers
Device: Lg Optimus One
CPU: 600 Mhz ARMv6 (Overclocked to 748Mhz ondemand governor)
GPU: Qualcomm Adreno 200
RAM: 512 MB
Resolution: 320 x 480
Rom: Unofficial Cyanogenmod 9

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: multiplayer split-device
« Reply #4 on: December 20, 2012, 06:36:01 PM »
Right, that is another idea I've considered.  Basically one phone would be streaming video to the other, and the other phone would be sending input events.  The difficulty there is video capture is difficult, and requires root on older versions of Android if I remember right.

A third, more complicated idea I considered would be to send high level emulation commands instead of video, and have the other device interpret those commands to render the video.  Both devices would maintain synchronized copies of the ram since it is read and written to in interpreting the commands.  Basically it would be a custom video plug-in that rendered remotely on a separate device.  While this would arguably be the most elegant solution, it would also take the most work to implement.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline futaris

  • bit
  • Posts: 2
    • View Profile
Re: multiplayer split-device
« Reply #5 on: January 04, 2013, 07:36:05 AM »
newbielink:http://esrlabs.com/android-transporter-for-the-nexus-7-and-the-raspberry-pi/ [nonactive]
newbielink:http://forum.xda-developers.com/showthread.php?t=1997324 [nonactive]

MiraCast works on the Nexus 4 and Optimus G.

Offline futaris

  • bit
  • Posts: 2
    • View Profile
Re: multiplayer split-device
« Reply #6 on: January 04, 2013, 07:48:58 AM »
And there is also firmware for the Nexus there...