-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove some frame time #674
Conversation
|
@@ -75,6 +75,8 @@ export default class SceneEntryManager { | |||
return; | |||
} | |||
|
|||
this.scene.setAttribute("motion-capture-replayer", "enabled", false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove the component entirely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe its used for bots
const lineVisible = !!(this.enabled && rightHandPose); | ||
|
||
if (this.el.getAttribute("line").visible !== lineVisible) { | ||
this.el.setAttribute("line", "visible", lineVisible); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually we will ditch the aframe line component and draw it ourselves.
Does a few optimizations on some fixed costs per frame:
tick
onmotion-player-capture
if we're not running in bot modesetAttribute
on cursor components if not necessary