tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Smooth Scroll Not smooth enough

Open juanpc2018 opened this issue 2 years ago • 11 comments

Steps to reproduce

with a trackpad or mouse 3rd wheel, scroll fast a large channel.

Expected behaviour

smooth scroll like browser.yandex. or firefox, at 60fps.

Actual behaviour

some images, videos, emoticons, or comments update. create interrupts that affect scrolling.

Operating system

Windows8.1x64

Version of Telegram Desktop

3.6.1x64

Installation source

Static binary from official website

Logs

No response

juanpc2018 avatar Mar 30 '22 15:03 juanpc2018

#6746?

ilya-fedin avatar Mar 30 '22 21:03 ilya-fedin

yes, my issue is related to Kinetic scroll code, part of kinetic scroll., Needs "fine tuning", clean up, optimization, maybe a change in priority levels or disable realtime monitoring of comments while scrolling? maybe, increase pre-load cache buffer? DMA ? maybe cache is using virtual ram in HDD? should be real ram. interesting to test if bug happens on a faster M.2 drive.

juanpc2018 avatar Mar 31 '22 03:03 juanpc2018

I don't quite understand what you're talking about. Can you provide a screencast? I thought you mean that there's no kinetic scrolling what is already reported as #6746, but if you think your issue is not a duplicate, a screencast is required then.

ilya-fedin avatar Mar 31 '22 05:03 ilya-fedin

I don't quite understand what you're talking about. Can you provide a screencast? I thought you mean that there's no kinetic scrolling what is already reported as #6746, but if you think your issue is not a duplicate, a screencast is required then.

https://odysee.com/@Dissent:c/tdesktop30fps:1

happens on both sides of Telegram, Left Subscribed / Following Channels Right Channel Content.

Telegram has very low Ram usage... problem is Not related to loading content only, because Left Window also has a problem., and only needs to load cache.

Windows81x64 3.6.1x64

i recorded the video with an external HDMI PCIe recorder, and other PC. my PCIe hdmi capture card is old, does Not allow 60fps, only 30fps at FullHD.

Control Panel Settings: Mouse Wheel 2 lines. Microsoft All-In-One Keyboard Trackpad. Nvidia GT 730 GPU

browser.yandex is the most smooth scroll, but still has problems in some websites like this: https://www.swpc.noaa.gov/communities/space-weather-enthusiasts

but Not this: https://www.microsoft.com/ru-ru/accessories/products/keyboards/all-in-one-media-keyboard?activetab=overview:primaryr2

https://www.microsoft.com/en-ww/accessories/products/keyboards/all-in-one-media-keyboard?activetab=overview%3aprimaryr2

juanpc2018 avatar Mar 31 '22 17:03 juanpc2018

i have bad news...

Kubuntu 20.10 Groovy Gorilla, Mac Mini 2014 Iris Graphics 5100 GPU SSD SATA-3 6Gbps, Disk Tools Benchmark 556MB/s avg read. 278MB/s write.

Scroll jitter is insane... like 3 frames per second. everything is chopped, skips frames like crazy.

i know the GPU is inferior to Nvidia GT 730, Yandex browser also feels strange, but Not like this, this is insane...

Telegram Latest Edge version 3.6.2x64

https://en.wikipedia.org/wiki/Mac_Mini#Third_generation_(Unibody) https://en.wikipedia.org/wiki/Intel_Graphics_Technology#Haswell

i can record a video if you want to cry.

juanpc2018 avatar Apr 04 '22 21:04 juanpc2018

i can recor a video if you want to cry.

Yeah, I don't see anything like that

ilya-fedin avatar Apr 04 '22 21:04 ilya-fedin

https://odysee.com/tdesktop30fps_1:dc5cbc0e0864de7da6fb11fd8f29a4a057928c9e

juanpc2018 avatar Apr 04 '22 21:04 juanpc2018

i think i found the root of the problem... problem is related to the type of USB Mouse or Trackpad...

i changed to a Microsoft Wireless Mouse 5000 does Not slip & slide like the Microsoft All-In-One Trackpad with 2 fingers, BUT... moving the Wheel fast, looks smooth, same Wheel settings 2 lines per click, but the mouse wheel has no steps, gives a smooth feeling. mouse that have steps in the wheel, make noise, and feel weird, a vibration hit in the finger bones.

when moving slow, the stepness / staircase feeling can be detected visually, but smaller.

in OSX the wheel has severe problems, after Sierra when used with a Non-Apple Trackpad or Mouse, there are many 3rd party apps to tweak the settings of OSX to solve the problem. some browsers in OSX override Mouse settings, and create their own custom settings to avoid the problem.

http://xahlee.info/kbd/mouse_dpi.html http://xahlee.info/kbd/mouse_polling_rate.html

https://www.gearrate.com/en/guide/mouse-dpi/ https://www.techadvisor.com/how-to/pc-peripheral/how-check-mouse-dpi-3679433/ https://www.mouse-sensitivity.com/dpianalyzer/

juanpc2018 avatar Apr 05 '22 00:04 juanpc2018

found a better way to explain the problem.:

mouse wheel 1 vs 10 scroll lines. https://odysee.com/@Dissent:c/Wheel-Lines-1-vs-10:5

lines are not pixels, 1 line still feels a bit coarse when moving slow, at 1 line steps at 1080p but visually acceptable, almost fools human eye. vs. 10 jumps "coarse", Not smooth transition.

with 1 setting i need to move very fast the mouse wheel to scroll the screen at an acceptable speed. does Not increase speed dynamically. does Not have smooth transition between 1 line and the next. video pause when moving scroll.

Same happens with MIDI volume cc7, MIDI its 7-Bits 0 to 127 steps "128", coarse enough to be noticeable when making a fade-in or fade-out, DSP mixers like Yamaha DSP Factory pci or Digital consoles 01v 03d 02r, implemented decades ago an algorithm to make smooth volume transitions between midi steps. for example, Audio 16-Bits = 65536 steps, MIDI 7-Bits 128 steps = 512 steps jumped. Audio 20-Bits = 1048576 steps. MIDI 7-Bits 128 steps = 8192 steps jumped. Audio 24-Bits = 16777216 steps. MIDI 7-Bits 128 steps = 131072 steps jumped.

Smooth Volume algorithm, gradually change values between MIDI steps, Not jumping 512 steps.

same: FullHD has 1920x1080x30fps 1080 / 24fps = 45 1080 / 30 fps = 36 1080 / 60fps = 18 1080 / 120fps = 9

In Sony TVs is called MotionFlow, in Samsung TVs is called AutoMotion Plus in LG TruMotion.

https://ru.wikipedia.org/wiki/Motionflow https://ru-m-wikipedia-org.translate.goog/wiki/Motionflow?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=es&_x_tr_pto=wapp https://en.wikipedia.org/wiki/Motion_interpolation https://en.tab-tv.com/?page_id=7203

juanpc2018 avatar Apr 09 '22 03:04 juanpc2018

tested pearOS Monterrey in acer Aspire 5 Touchpad, scroll looks smooth.

each hardware scroll algorithm behaves differently. Mouse Wheel scroll Jumps, acer Touchpad is smooth. microsoft aio touchpad has weird jitter, jumps like a mouse wheel when slow, and slides like a touchpad when fast, but slides like a water slide in a aquapark. etc...

in linux there is imwheel software to improve mouse wheel scroll. when touch pad is a fake mouse wheel.

Some softwares like Yandex & Firefox try to solve the HW differences problem, creating its own scroll algorithm. but other softwares do Not, like Telegram Desktop. are HW transparent, if HW has scroll problems Telegram Desktop scroll shows.

juanpc2018 avatar May 01 '22 17:05 juanpc2018

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

github-actions[bot] avatar Oct 29 '22 02:10 github-actions[bot]