diff options
author | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2023-07-09 00:18:48 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2023-07-10 21:20:13 +0000 |
commit | 514d3e3b064def29f25a2a5f7c5447efcab3ccf8 (patch) | |
tree | d64a8978f9f692d90ecdbf5bc156ae00c3098be5 /src/loadpng.c | |
parent | cec6695ba5615076f326ce0cd4e5f21fe6341db1 (diff) | |
download | qlprint-fixes.tar.gz qlprint-fixes.tar.xz qlprint-fixes.zip |
ql: optimize USB data flowfixes
Write column data into a buffer, and only write
to USB once the buffer is filled past threshould.
This reduces the amount of data frames on the USB bus,
in a 429x336 sample image it was reduced from 1000 frames
to about 100 frames, where the image data is only 20 frames,
while the rest is mainly polling for status reponses.
Diffstat (limited to 'src/loadpng.c')
0 files changed, 0 insertions, 0 deletions