xanxys / construct

Foundation for in-VR development environment for Oculus Rift HMD
3 stars 0 forks source link

Connect V8 #1

Closed xanxys closed 10 years ago

xanxys commented 10 years ago

Either

  1. make construct node module(s) and use node.js
  2. add V8 and expose interface

1 will allow use of npm and node.js standard libraries, but need to expose OpenGL and LibOVR unnecessarily. (but this can be a useful by-product). User can easily mess up event loop and disrupt 60fps operation. ArrayBuffer transfer might be slow.

2 will make OpenGL-LibOVR interop very easy (since they're C/C++), exposing no interface (other than in VR). Lack of package manager and standard libs can be good or bad.

xanxys commented 10 years ago

1 seems too unsafe. Also, node.js can't cleanly handle calls from always running script and/or timed calculation.