rmview icon indicating copy to clipboard operation
rmview copied to clipboard

Turning page time

Open nicolabotta opened this issue 2 years ago • 3 comments

Thanks for providing rmview! The application works fine with my rM 1 (version 2.12) and Debian stable.

The writing speed is very good on my old Thinkpad x230 but it takes 5-6 seconds for rmview to turn a page. The windows app under wine needs about 1 second to turn a page on the same laptop, more or less like the rM. Is there anything that I can do to make turning pages with rmview faster?

nicolabotta avatar Feb 17 '22 07:02 nicolabotta

Turning pages is indeed weirdly slow, I did not know it was that much slower than the official app. I am not sure what could cause this. Options:

  • the server issues many small rectangle updates and rmview processes them slowly
  • the server supports an encoding which rmview does not which when used in this scenario speeds up things

If I can find the time I'll try to debug this one. I'll keep the issue open in case somebody else can provide other ideas/data points.

bordaigorl avatar Feb 17 '22 08:02 bordaigorl

Great, thanks for providing rmview and for looking into this issue!

nicolabotta avatar Feb 17 '22 10:02 nicolabotta

Just pushed an update (0ebddac75877ae8868f94b678f39b5bb36124dc0 on branch devel) that should fix this issue. The problem was the implementation of the RFB protocol, which was very memory-inefficient in decoding the stream of tiles. I reimplemented it and now the latency is negligible.

bordaigorl avatar Mar 05 '23 01:03 bordaigorl