Skip to content
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

Separate vibration from animation #2

Open
jessegreenberg opened this issue Oct 21, 2019 · 0 comments
Open

Separate vibration from animation #2

jessegreenberg opened this issue Oct 21, 2019 · 0 comments

Comments

@jessegreenberg
Copy link
Contributor

jessegreenberg commented Oct 21, 2019

After discussion with @liquatics .

Current implementation of vibration couples vibration patterns with the animation frame (stepSimulation). See the step function of vibrationManater.

This allows us to know exactly when the phone is vibrating, when the device is in uptime/downtime during a vibration pattern. However, we can't have vibration patterns that are faster than the framerate.

We suspect that we could support faster vibration patterns if we move the navigator.vibrate calls out of step. It is worth it to sacrifice the knowledge of uptime/downtime in a vibration pattern to have this. We may be able to still guess the uptime/downtime in a vibration pattern (at least good enough for the VibrationChart visualization).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant