Home Download Buy Blog Forum Support

Cpu load when for smooth scrolling

Cpu load when for smooth scrolling

Postby alexandrustaetu on Thu Aug 15, 2013 5:11 pm

Hello,

I noticed that , while smooth scrolling is enabled, when scrolling through the code, Sublime will kill the processor. Following lines are spewed at the process strace:

poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14, events=POLLIN}, {fd=76, events=POLLIN}, {fd=10, events=POLLIN}, {fd=75, events=POLLIN}, {fd=79, events=POLLIN}, {fd=7, events=POLLIN}], 11, 0) = 0 (Timeout)
recvfrom(3, "\301\0\350\231H\0\300\4\3\0\203\0\31\0C\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 0, NULL, NULL) = 192
recvfrom(3, 0x207dd44, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
shmdt(0x7f3b8a000000) = 0
poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"5\30\4\0\373%\300\4\3\0\300\4\200\7\330\3\31\0\v\0H\0\300\4\0\0\0\0\301\0\23\232"..., 356}, {NULL, 0}, {"", 0}], 3) = 356
recvfrom(3, 0x207dd44, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14, events=POLLIN}, {fd=76, events=POLLIN}, {fd=10, events=POLLIN}, {fd=75, events=POLLIN}, {fd=79, events=POLLIN}, {fd=7, events=POLLIN}], 11, 0) = 0 (Timeout)
recvfrom(3, 0x207dd44, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x207dd44, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14, events=POLLIN}, {fd=76, events=POLLIN}, {fd=10, events=POLLIN}, {fd=75, events=POLLIN}, {fd=79, events=POLLIN}, {fd=7, events=POLLIN}], 11, 0) = 0 (Timeout)
recvfrom(3, 0x207dd44, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14, events=POLLIN}, {fd=76, events=POLLIN}, {fd=10, events=POLLIN}, {fd=75, events=POLLIN}, {fd=79, events=POLLIN}, {fd=7, events=POLLIN}], 11, 0) = 0 (Timeout)

Running Ubuntu 13.04, x64, both sublime 2 and 3 beta are affected by this.

"scroll_speed": 0, will fix this, disabling any smooth animation for the scroll.
alexandrustaetu
 
Posts: 1
Joined: Thu Aug 15, 2013 4:57 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 16 guests