- Grove Cable Serial 1.25Mbps で通信してみるコードの断片です(PlatformIOとかで動かすと簡単です)
- 時々画像が壊れるのですが原因はよくわかってません。
- qualityを下げるとFPSが上がります。(ボトルネックは通信速度)
- This is a code fragment that tries to communicate with Grove Cable Serial 1.25Mbps (it is easy to move with PlatformIO)
#if !UNITY_EDITOR && !UNITY_WSA //#if !UNITY_WSA | |
using System; | |
using UnityEngine.Scripting; | |
namespace UnityEngine.VR.WSA.Input | |
{ | |
public enum InteractionSourceKind | |
{ | |
Other = 0, |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
#config.vm.box = "ubuntu/trusty64" |
var http = require('http'); | |
var fs = require('fs'); | |
var WSServer = require('websocket').server; | |
var url = require('url'); | |
var clientHtml = require('fs').readFileSync('client.html'); | |
var plainHttpServer = http.createServer( function(req, res) { | |
res.writeHead(200, { 'Content-Type': 'text/html'}); | |
res.end(clientHtml); |