New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Solar_
Old
(Last edited by Solar_; 28th February 2012 at 11:33 AM.)
#811  
Solar_'s Avatar
Senior Member
Thanks Meter 168
Posts: 444
Join Date: Aug 2011
Yeay, I think found the problem for all the graphical glitches (like when scrolling in the App drawer, the screen 'tears') or when pulling the notification bar up and down very fast (it'll 'tear').

The vSync is off.

This is just a basic description of vSync:
Say your screen refreshes at 60Hz - vSync on will attempt to display 30fps to avoid tearing. 30 goes into 60 twice evenly... get it?
vSync off will display as many fps as possible. So rather than holding back and displaying 30fps it will allow 35fps. This will cause tearing because 35 does not go into 60 evenly.


So we have to enable vSync to avoid this..


Edit: The LG Optimus One kernel developer did it like this:
Code:
drivers/video/msm/mddi_hitachi_hvga.c

pinfo->lcd.vsync_enable = TRUE;
pinfo->lcd.hw_vsync_mode = TRUE;
Samsung Galaxy S4 i9505
Stock ME2 ROM & Kernel.
The Following 2 Users Say Thank You to Solar_ For This Useful Post: [ Click to Expand ]
 
inzaghi75
Old
#812  
inzaghi75's Avatar
Senior Member
Thanks Meter 1464
Posts: 2,640
Join Date: Oct 2009
Quote:
Originally Posted by Solar_ View Post
Yeay, I think found the problem for all the graphical glitches (like when scrolling in the App drawer, the screen 'tears') or when pulling the notification bar up and down very fast (it'll 'tear').

The vSync is off.

This is just a basic description of vSync:
Say your screen refreshes at 60Hz - vSync on will attempt to display 30fps to avoid tearing. 30 goes into 60 twice evenly... get it?
vSync off will display as many fps as possible. So rather than holding back and displaying 30fps it will allow 35fps. This will cause tearing because 35 does not go into 60 evenly.


So we have to enable vSync to avoid this..


Edit: The LG Optimus One kernel developer did it like this:
Code:
drivers/video/msm/mddi_hitachi_hvga.c

pinfo->lcd.vsync_enable = TRUE;
pinfo->lcd.hw_vsync_mode = TRUE;
How we can put it? in build.prop?
 
Solar_
Old
#813  
Solar_'s Avatar
Senior Member
Thanks Meter 168
Posts: 444
Join Date: Aug 2011
Quote:
Originally Posted by inzaghi75 View Post
How we can put it? in build.prop?
Nope, it's in the kernel.
But I am no kernel developer so I need someone to do this.
Samsung Galaxy S4 i9505
Stock ME2 ROM & Kernel.
The Following User Says Thank You to Solar_ For This Useful Post: [ Click to Expand ]
 
umd
Old
(Last edited by umd; 28th February 2012 at 11:45 AM.)
#814  
Senior Member
Thanks Meter 61
Posts: 766
Join Date: Jul 2010
I had that screen problem on all Trips roms. I tried with different kernels but didnt solve it as I remember.
 
djgboy
Old
#815  
djgboy's Avatar
Senior Member
Thanks Meter 43
Posts: 629
Join Date: Mar 2009
Location: Hollywood
with me when I use the mms messages widget you cannot type to reply you have to go back to the app

Sent from my HTC Sensation using XDA App
Current Device: T-Mobile US HTC Sensation 4G with Beats Audio
Android Rom: OrDroid ™ Rom Series
Android Version: 4.0.4
HTC Sense Version: 4.0
Bootloader: 4EXT Recovery Touch
Kernel: 1.512 GHz OC/UV 3.0.16-g5e58c5e v1.01
*** LOCKED *** S-OFF HBOOT-1.27.0000
 
vegetaleb
Old
#816  
vegetaleb's Avatar
Senior Member
Thanks Meter 530
Posts: 4,330
Join Date: Feb 2010
Location: Beirut
I think a One S RUU will solve many problems for this rom
The Following 2 Users Say Thank You to vegetaleb For This Useful Post: [ Click to Expand ]
 
inzaghi75
Old
#817  
inzaghi75's Avatar
Senior Member
Thanks Meter 1464
Posts: 2,640
Join Date: Oct 2009
Whats up with Twitter. Doesn´t sync. Is this a HTC issue because I can not set the time of syncing.
 
Dunc001
Old
#818  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1226
Posts: 2,536
Join Date: Apr 2010
Location: Hiding out south of the border...
Quote:
Originally Posted by Solar_ View Post
Nope, it's in the kernel.
But I am no kernel developer so I need someone to do this.
Yep, but no source code from HTC yet for the 3.0 kernel so until then you'll just have to put up with it...
HTC One
TrickDroid 7.0.0 Sense 5.0 with Stock Kernel for now

First HTC HD2
PixelFreak 4.2.2 V6.0 DataOnExt

Second HTC HD2
Touchwiz 2.1 DataOnExt
 
Solar_
Old
#819  
Solar_'s Avatar
Senior Member
Thanks Meter 168
Posts: 444
Join Date: Aug 2011
Quote:
Originally Posted by Dunc001 View Post
Yep, but no source code from HTC yet for the 3.0 kernel so until then you'll just have to put up with it...
So we can't do it with hex edits?
Samsung Galaxy S4 i9505
Stock ME2 ROM & Kernel.
 
Dunc001
Old
#820  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1226
Posts: 2,536
Join Date: Apr 2010
Location: Hiding out south of the border...
Quote:
Originally Posted by Solar_ View Post
So we can't do it with hex edits?
Sure, if someone has the time to compile a kernel from available source without and with those edits, diff the file and then hex edit the file in the 3.0 kernel accordingly...
HTC One
TrickDroid 7.0.0 Sense 5.0 with Stock Kernel for now

First HTC HD2
PixelFreak 4.2.2 V6.0 DataOnExt

Second HTC HD2
Touchwiz 2.1 DataOnExt

Tags
exclusive, sense 4.0, virtuous eclipse, your best choise