AdaptiveHaptics / AdapticsDesigner

An online platform for creating and experimenting with dynamic mid-air haptic patterns.
https://adaptivehaptics.github.io/AdapticsDesigner/
GNU General Public License v3.0
1 stars 0 forks source link

Solve skipping past cjumps with very high playback speeds/many close together frames (also causes visual noise in playback GUI) #38

Closed kevin-cgc closed 1 year ago

kevin-cgc commented 1 year ago

Right now cjumps can be skipped if frames are very close together and/or if the playback speed is very high. This is because the eval only checks prev_kfc.keyframe rather than all the kfs between nep.last_eval_pattern_time and now.

This is exhibited during playback in the GUI, with micro "glitches" around cjumps that are not expected. The problem is more visible in the GUI due to the low refresh rate (60hz) compared to the device at ~1000hz-200hz.