[Trying to fix] Display input lag

Chrissssssss

Senior Member
Nov 14, 2008
238
27
0
Exactly. It is the time difference between when you move your finger and the screen is done rendering. A lot of code is executed during that time.


I think that a good part of it is related to smoothing algorithms and resource management in Android 4+. If you keep changing timespans in which a certain peace of grahics moves from one place to another in seperate thread, you will get smooth but slow scrooling because the panel will keep scrolling while the next target and time is calculated. It would have to be very poorly coded to actually get freezes even with performance issues.
I've noticed the difference between my old Desire and my wife's Xperia Ray which are both gingerbread. When pulling the notification bar down the
graphics are far less smooth but the input lag is a lot lot less so I wouldn't be surprised if that is at least some of the reason.

Would be interesting to compare my Desire running ICS or JB to see if it's different. Can I be bothered though? probably not.
 

Tzarski

Senior Member
Feb 11, 2011
120
17
18
Re: [Dev request] Fix touchscreen input lag

There is a simple solution for less input lag and faster (and more accurate) touch tracking for the Note 2.

Download and install SGS Screen Booster from the Play store (it's free) and open the application.

I've attached a screenshot with the default settings and the optimized settings that work for me.
Select the 'Super Optimized' preset, it will set Sensitivity to 28 (default 40), I've lowered it (lower values = higher sensitivity) to 0 without problems. Don't forget to check the 'Start Service on boot' checkbox to make the settings stick.

To see the difference try the method suggested by the OP by selecting 'Show touches' under System Settings/Developer Options, you should see an improvement in the speed of the input tracking with the optimized settings meaning even fast movements on the screen will still result in faster and slightly more accurate tracking of the movement compared to default settings.

It's also quite evident in SNote, the input delay of the SPen is reduced resulting in more of a 'real world' experience when using the SPen for writing or sketching.

It's not perfect but it does improve the input lag from pretty bad to IMHO tolerable levels.

Would like to hear feedback if this works for others as well.

For reference, I'm on ARHD 14.
What Motion Filter for???

When set it to 0 I feel like the screen's reactions faster?

Sent from my GT-N7100 using XDA Premium HD app
 

UltimateByte

Senior Member
Dec 6, 2010
139
56
0
terageek.org
There is a simple solution for less input lag and faster (and more accurate) touch tracking for the Note 2.

Download and install SGS Screen Booster from the Play store (it's free) and open the application.

I've attached a screenshot with the default settings and the optimized settings that work for me.
Select the 'Super Optimized' preset, it will set Sensitivity to 28 (default 40), I've lowered it (lower values = higher sensitivity) to 0 without problems. Don't forget to check the 'Start Service on boot' checkbox to make the settings stick.

To see the difference try the method suggested by the OP by selecting 'Show touches' under System Settings/Developer Options, you should see an improvement in the speed of the input tracking with the optimized settings meaning even fast movements on the screen will still result in faster and slightly more accurate tracking of the movement compared to default settings.

It's also quite evident in SNote, the input delay of the SPen is reduced resulting in more of a 'real world' experience when using the SPen for writing or sketching.

It's not perfect but it does improve the input lag from pretty bad to IMHO tolerable levels.

Would like to hear feedback if this works for others as well.

For reference, I'm on ARHD 14.
Already tried, and tried again : No improvement at all.
3 options
1) There is no imrpovement, and you're running under placebo effect
2) I don't notice the small improvement but you do
3) You've got an amazing phone that has a fix for the SGS1 working on it, but you're the only one.
 

Chrissssssss

Senior Member
Nov 14, 2008
238
27
0

UltimateByte

Senior Member
Dec 6, 2010
139
56
0
terageek.org
Shame. I will have to try and remember to try out this on my parents' camera when I'm around there next which has a 240FPS mode.
Sure, try it ! I'll try to get the 120fps gopro, to test different kernels (i don't wanna wipe my ROM again now, need a stable and efficien phone, i've got less and less free time these days), that will be enough already, as the screen is 58fps, the 8ms error margin will be negligible.

samsung needs to learn from apple when it comes to touchscreen input the iphones looks instant but im not really sure

imagine someone makes this for phones http://www.youtube.com/watch?feature=player_embedded&v=vOvQCPLkPt4
This link is on the main topic :)
Everyone having any doubt about how input lag matters, or wanting to see it in action should watch this video from Microsoft
http://youtu.be/vOvQCPLkPt4
But yeah, apple's recent touchscreens are slightly more responsive (divide samsung's time by 2 or 3)...
 

haldi15

Senior Member
Jul 15, 2010
820
130
0
Sure, try it ! I'll try to get the 120fps gopro, to test different kernels (i don't wanna wipe my ROM again now, need a stable and efficien phone, i've got less and less free time these days), that will be enough already, as the screen is 58fps, the 8ms error margin will be negligible.



This link is on the main topic :)


But yeah, apple's recent touchscreens are slightly more responsive (divide samsung's time by 2 or 3)...
my moms iphone 3gs has a lower latency than my note 2 thats really depressing how a phone made in 2009 has a better touchscreen than a phone made in late 2012:confused:
 

UltimateByte

Senior Member
Dec 6, 2010
139
56
0
terageek.org
my moms iphone 3gs has a lower latency than my note 2 thats really depressing how a phone made in 2009 has a better touchscreen than a phone made in late 2012:confused:
Yes...

But the iphone 3g (not 3gs), even if better than a SGS3 or Note 2, has a worse input lag than the SGS1 :)

Still this SGS1, release 5 **edit** almost 3 years ago, and still better than a Note 2...
 
Last edited:

Mohammed779

Senior Member
Dec 28, 2012
1,262
553
143
Re: [Dev request] Fix touchscreen input lag

the s pen the hoovering cursor thing also has delay.. just like the touchscreen.. wouldnt that also say that's its a hardware problem.. or that is just a completely different thing..

Sent from my GT-N7100
 

3Dpixel

Senior Member
Aug 27, 2011
245
33
0
Amsterdam
Re: [Dev request] Fix touchscreen input lag

Where the calculated is done
Cpu or Gpu
And which is faster
And which one used iphone
(The youtube doc. Its hardware problem)

Verstuurd van mijn GT-N7100
 

UltimateByte

Senior Member
Dec 6, 2010
139
56
0
terageek.org
Where the calculated is done
Cpu or Gpu
And which is faster
And which one used iphone
(The youtube doc. Its hardware problem)

Verstuurd van mijn GT-N7100
Not sure to understand everything, your english is weird...

Here is what i know for sure : the capacitive touchscreen must have a dedicated controller (or interface/signal converter), that is linked to the cpu.
There could be a driver or program tweak for it, or the controller could just suxx.

The GPU doesn't cause a hardware latency itself, neither the CPU does, because their frequencies are hundred (GPU), thousand (CPU) megahertz, but there can be some frames buffering that add software latency on the display, not the input.

So 2 kind of latency : input (touchscreen detection), and display (buffering and hardware input lag).

Maybe the iphone has a better controller/converter or a better driver, or both... But anyway, the iphone is very far from being input lag free, it's more than 50ms, maybe 100ms for the 4gs, need to recheck the iphone 5 to tell if it's really better or not. Need to have an iphone 5 and a 4gs together to tell.
 
Last edited:
  • Like
Reactions: 3Dpixel and ecalou
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone