[Sep. 7, 2014][ROM][KK][4.4.4][720p] NexusHD2-KitKat-CM11.0 V4.7 [Kernel: tytung_jellybean_r2]

Android development for HTC HD2/Leo
Moderator: Forum Moderator

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby PoJD001 » Wed Jan 08, 2014 8:35 pm

Odysseus wrote:2 days is outstanding! I never got better than a day when I had my HD2. If you're willing to experiment and see if you can do even better. instead of greenify or system monitor you may want to try "Snapdragon BatteryGuru" by Xiam Technologies, which is the software development arm of Qualcomm. I've been using it now for several weeks and it has increased the battery life of my Amaze by 20%.

Thanks. But the improved battery life was just a nice side effect of the performance optimizations. If I was after battery life, I wouldn't have chosen ondemand, but probably conservative or smartassv2 governors... I took a brief look at the app you mention and found varying results on xda. I honestly don't trust some magic apps that suddenly improve everything. I understand how it roughly works, but these beasts are not for me :-) It is a background running app after all anyway, right. So it will eventually consume system resources anyway, which I am trying to minimize. It is like say using superfetch in Windows 7 for me. Am naturally skeptical to these smart apps... Android was designed certain way and I just use it that way (keep closed apps in memory too to speed up next invocation, etc). Thanks for your suggestion anyway.
Last edited by PoJD001 on Wed Jan 08, 2014 8:46 pm, edited 1 time in total.
PoJD001
Junior Member
 
Posts: 15
Joined: Tue Oct 22, 2013 10:32 pm
Country: Czech Republic (cz)
Has thanked: 5 times
Been thanked: 11 times

Advertisement
 

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby PoJD001 » Wed Jan 08, 2014 8:41 pm

soren wrote:Just out of curiosity, why do you force GPU rendering? I used to do this because I thought it would be faster but I didn't see any difference. On the contrary, I feel the apps launch faster (second time onward) when I disable HWUI for them.

I have switched this on just recently, so still exploring. My naive understanding was that system apps would use GPU rendering too, which I was not sure is hapenning otherwise. I have not noticed any particular improvements either on this one. That list was just my current setup, I do not guarantee all the settings were proved to have a positive impact. Thanks for your findings though!
PoJD001
Junior Member
 
Posts: 15
Joined: Tue Oct 22, 2013 10:32 pm
Country: Czech Republic (cz)
Has thanked: 5 times
Been thanked: 11 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby PoJD001 » Wed Jan 08, 2014 8:44 pm

gpietron wrote:out of curiosity, which I/O Scheduler are you using in this setup?

Default so far. Did a research and from what I read cfq (default) seemed to yield the most reasonable results. But maybe I will revisit this again at some point.
PoJD001
Junior Member
 
Posts: 15
Joined: Tue Oct 22, 2013 10:32 pm
Country: Czech Republic (cz)
Has thanked: 5 times
Been thanked: 11 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby soren » Wed Jan 08, 2014 9:11 pm

PoJD001 wrote:I have switched this on just recently, so still exploring. My naive understanding was that system apps would use GPU rendering too, which I was not sure is hapenning otherwise. I have not noticed any particular improvements either on this one.

I see. I want to optimize my HD2 so in the past I used to enable this option but I didn't notice any difference. Also, I thought that using HWA would make apps run faster but it seems that I was wrong. I use HWA Settings and it might just be a placebo effect but I feel that my HD2 runs smoother when I disable HWUI for a lot of apps.
soren
Senior Member
 
Posts: 303
Joined: Mon Jul 08, 2013 12:41 pm
Has thanked: 160 times
Been thanked: 86 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby Osprey00 » Wed Jan 08, 2014 9:22 pm

tytung, is this anything useful?

0001-Forward-port-surface-dithering-from-CM10.2.patch

ersinozler wrote:1. Black screen issue is spreading (Google Search + Currents App + Facebook App) (Workaround: disable apps' Hardware Acceleration via Hwa Settings - Not Helpfull)
The thing is: All these Apps. works fine on their welcome screen, but when you choice another section or make a search or select something, that new screen comes black but navigation buttons is visible and working.

As I mentioned the other day, my theory is that it's related to Android's HTML rendering components. The screen goes black in Google Now/Search only when you do a search that requires web results. My guess is that the Currents and Facebook apps are querying the same HTML rendering component of Android. It makes it easier on the app developers, after all, to use web data whenever possible (especially when all of Facebook is on the web already, anyways), instead of needlessly duplicating everything in the app. If we can determine what that HTML rendering component is and either fix it or replace it, we'll likely fix all those apps that depend on it. That's my theory, at least. I believe that I read something about Google replacing the old WebView renderer with a Chromium-based one in KitKat (or something like that), so that could be the underlying change. Beyond that, I don't really know enough to pursue the problem solving much further, though. Hopefully, tytung can use this info to find the solution.

EDIT: To add to this, through some searching, I found that this is/was a problem on KitKat ROMs for other old phones, like the Desire HD (similar to the HD2) and the Nexus S. In a Nexus S thread, I found this guy's post:

http://forum.xda-developers.com/showpos ... tcount=366

That's what I was thinking, too, that the web renderer is making a call to graphics libraries that's failing. That would be why you get only a black square, yet you can click around on it to access the links that you can't see (meaning that the actual data is there).

Also, he followed up with this large post that suggests that he made some progress:

http://forum.xda-developers.com/showpos ... tcount=382

...then this one that suggests that the CM team fixed the bug:

http://forum.xda-developers.com/showpos ... tcount=393

I wonder why we're still seeing it, then. Perhaps the changes aren't in the particular versions used in our ROMs or they're enough to fix the issue for that chipset, but not for ours. I don't know, but I'm throwing everything out there in hopes that tytung knows what (if anything) to do with it.
Last edited by Osprey00 on Thu Jan 09, 2014 12:33 am, edited 6 times in total.
Osprey00
Junior Member
 
Posts: 11
Joined: Sun Sep 29, 2013 10:22 pm
Country: United States (us)
Has thanked: 3 times
Been thanked: 11 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby PoJD001 » Wed Jan 08, 2014 9:46 pm

soren wrote:I see. I want to optimize my HD2 so in the past I used to enable this option but I didn't notice any difference. Also, I thought that using HWA would make apps run faster but it seems that I was wrong. I use HWA Settings and it might just be a placebo effect but I feel that my HD2 runs smoother when I disable HWUI for a lot of apps.

I see as well :-) I will play around with HWA settings too and will see how it goes for me:-) You are right that it is indeed really tricky to assess performance improvement by just observing and no benchmarking which is however not doable very often...
PoJD001
Junior Member
 
Posts: 15
Joined: Tue Oct 22, 2013 10:32 pm
Country: Czech Republic (cz)
Has thanked: 5 times
Been thanked: 11 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby Odysseus » Wed Jan 08, 2014 10:58 pm

Osprey00 wrote:tytung, is this anything useful?

0001-Forward-port-surface-dithering-from-CM10.2.patch


As I mentioned the other day, my theory is that it's related to Android's HTML rendering components. The screen goes black in Google Now/Search only when you do a search that requires web results. My guess is that the Currents and Facebook apps are querying the same HTML rendering component of Android. It makes it easier on the app developers, after all, to use web data whenever possible (especially when all of Facebook is on the web already, anyways), instead of needlessly duplicating everything in the app. If we can determine what that HTML rendering component is and either fix it or replace it, we'll likely fix all those apps that depend on it. That's my theory, at least. I believe that I read something about Google replacing the old WebView renderer with a Chromium-based one in KitKat (or something like that), so that could be the underlying change. Beyond that, I don't really know enough to pursue the problem solving much further, though. Hopefully, tytung can use this info to find the solution.

EDIT: To add to this, through some searching, I found that this is/was a problem on KitKat ROMs for other old phones, like the Desire HD (similar to the HD2) and the Nexus S. In a Nexus S thread, I found this guy's post:

http://forum.xda-developers.com/showpos ... tcount=366

That's what I was thinking, too, that the web renderer is making a call to graphics libraries that's failing. That would be why you get only a black square, yet you can click around on it to access the links that you can't see (meaning that the actual data is there).

Also, he followed up with this large post that suggests that he made some progress:

http://forum.xda-developers.com/showpos ... tcount=382

...then this one that suggests that the CM team fixed the bug:

http://forum.xda-developers.com/showpos ... tcount=393

I wonder why we're still seeing it, then. Could it be that they fixed it for devices that they officially support, like the Nexus S, but that code isn't making its way into our HD2 versions? I'm not sure what I'm talking about, but perhaps tytung can figure out what to do (if anything) with the information.


This issue is also occurring on KitKat builds for the Amaze. As you mention it only appears to be affecting older legacy devices. As all of the similar "cousins" to the Amaze are affected as well. Your theory as to the cause has been postulated by several devs I've read on xda. As mentioned, it's probably related to Google changing the default rendering engine from WebKit to Chrome. There must be something in the Chrome codebase that isn't playing nicely with the older generation Andreno drivers our devices use. That's why newer devices are unaffected.
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby Osprey00 » Wed Jan 08, 2014 11:05 pm

Odysseus wrote:This issue is also occurring on KitKat builds for the Amaze. As you mention it only appears to be affecting older legacy devices. As all of the similar "cousins" to the Amaze are affected as well. Your theory as to the cause has been postulated by several devs I've read on xda. As mentioned, it's probably related to Google changing the default rendering engine from WebKit to Chrome. There must be something in the Chrome codebase that isn't playing nicely with the older generation Andreno drivers our devices use. That's why newer devices are unaffected.

According to the last link that I posted, the problem seems to have been solved for devices with legacy PowerVR chips, like the Nexus S and Desire HD. Also, one of the Nexus S ROMs lists the following in its changelog: "WebView black square issue was gone. Thanks to klusark for the wonderful porting work." Our HD2s have Adreno chips, but you have to think that the solution is either identical or very similar.
Osprey00
Junior Member
 
Posts: 11
Joined: Sun Sep 29, 2013 10:22 pm
Country: United States (us)
Has thanked: 3 times
Been thanked: 11 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby Odysseus » Wed Jan 08, 2014 11:58 pm

Osprey00 wrote:According to the last link that I posted, the problem seems to have been solved for devices with legacy PowerVR chips, like the Nexus S and Desire HD. Our HD2s have Adreno chips, but you have to think that the solution is either identical or very similar.

Similar yes, identical no. The Adreno drivers and graphics engine our older devices use, were derived from ATI prior to their takeover by AMD (Adreno is an anagram of Radeon). After the ATI-AMD merger Qualcomm began furthering their Adreno graphics core independently of AMD. So each newer generation of Adreno has drifted further away from the Radeon base these processors began with. My take is Google developed KitKat with only the newest or upcoming graphic engines in mind. Since KitKat was not intended to run on our devices there was no backwards compatibility testing done to see if the new rendering engine broke older devices. It's going to take some cleaver development to get this sorted out, as Qualcomm is notorious for barely supporting the open source community. So even if they have the answers they're unlikely to reveal them publicly.
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

Re: [Jan. 1, 2014][ROM][KK][4.4.2][720p] NexusHD2-KitKat-CM11.0 V4.2 [Kernel: tytung_jellybean_r2]

Postby Osprey00 » Thu Jan 09, 2014 1:26 am

Odysseus wrote:Similar yes, identical no. The Adreno drivers and graphics engine our older devices use, were derived from ATI prior to their takeover by AMD (Adreno is an anagram of Radeon). After the ATI-AMD merger Qualcomm began furthering their Adreno graphics core independently of AMD. So each newer generation of Adreno has drifted further away from the Radeon base these processors began with. My take is Google developed KitKat with only the newest or upcoming graphic engines in mind. Since KitKat was not intended to run on our devices there was no backwards compatibility testing done to see if the new rendering engine broke older devices. It's going to take some cleaver development to get this sorted out, as Qualcomm is notorious for barely supporting the open source community. So even if they have the answers they're unlikely to reveal them publicly.

I understand, but it was sorted out for another legacy chipset, seemingly by making changes to only Chromium. It didn't require changes to any PowerVR-specific components, like drivers or libraries or require answers from the PowerVR developers. That gives me hope that the solution that we're looking for is not that far off (assuming that the right people go in search of it). In the meantime, it's going to have to be Jelly Bean for me, since Google Now/Search is pretty important.

I never realized that Adreno is an anagram for Radeon (or I just totally forgot). That's very interesting.
Osprey00
Junior Member
 
Posts: 11
Joined: Sun Sep 29, 2013 10:22 pm
Country: United States (us)
Has thanked: 3 times
Been thanked: 11 times

PreviousNext

Return to HD2 Android Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron