sz3 / libcimbar

Optimized implementation for color-icon-matrix barcodes
https://cimbar.org
Mozilla Public License 2.0
4.12k stars 293 forks source link

Suggest supporting frame rate adjustment #101

Open fcwys opened 1 month ago

fcwys commented 1 month ago

At present, it has been found that in remote desktop environments, the refresh rate of the screen is relatively slow, and the display of QR codes lags and affects the recognition of the APP. It is hoped that the frame rate can be adjusted to adapt to this usage scenario.

sz3 commented 1 month ago

This probably isn't the best answer, but right now the easiest way to do this might be to crack open whatever version of the cimbar.js page you're using and find/modify this line: https://github.com/sz3/libcimbar/blob/master/web/main.js#L3

That "66" is milliseconds -- the delay between frames. I'm not sure what frame delay will work best for that use case -- or even if there is a one-size-fits-all framerate, but you might try something like 200 (5 fps), 100 (10 fps), or something in between and see if it helps.

fcwys commented 1 month ago

OK, thank you. We can consider adding a frame rate option to the web page later.