libcimbar icon indicating copy to clipboard operation
libcimbar copied to clipboard

Suggest supporting frame rate adjustment

Open fcwys opened this issue 1 year ago • 2 comments

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.

fcwys avatar Sep 05 '24 09:09 fcwys

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.

sz3 avatar Sep 06 '24 04:09 sz3

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

fcwys avatar Sep 06 '24 06:09 fcwys