GingerXR / products

53 stars 2 forks source link

Mouse Lag . Virtual mouse suggestion #21

Open MikeTheAnomaly opened 3 days ago

MikeTheAnomaly commented 3 days ago

Streaming mouse and keyboard from the Android app to Xreal works! great job! However, the mouse is very laggy.

One solution I have seen most streaming apps use is a virtual mouse (TeamViewer, Chrome Remote Desktop, V-spatial on the Quest).

Suggested fix:

  1. Cast a ray from the player's position that changes the vectors polar coordinates based on the mouse movement.
  2. Translate the ray hit location to the corresponding location on the monitor.
  3. Send that location to Windows and have it update the mouse position.

Or lock the mouse to virtual monitors, depends if future virtual button will exist for settings/options.