Hardware acceleration, poor performance in 3.1 - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

As everyone know, a lot of modern mobile application developed using HTML5. It's simple to port them on other devices with different system using native webview or for example PhoneGap, etc, etc.
iOs, webOs and others do not have any problems with HTML5, but Android 3.x - have one big problem:
Starting from 3.0 hardware acceleration presented for android devices - http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html
And if you use webview - it's not possible to play video or flash without hardware acceleration, it's enabled by default in native browser and other apps and in theory should increase performance. It look like everything is ok, but WHEN YOU ENABLE HARDWARE ACCELERATION - PERFORMANCE OF YOU HTML5 APP BECOME VERY POOR, 2-3 TIMES LESS THAN WITHOUT ACCELERATION.
Tested on 3.0, 3.1, different ROMs, 2x 7500 and 2x 7510 samsung devices and on 2x acer iconia tab a500.
Please check attachments:
test_hw_acc_enabled_3.1.apk - test application that show difference between two WebViews with hardware acceleration enabled and disabled. Top view - HA enabled (and very slow), bottom view - HA disabled (fast, but not so fast as we want because of no hardware acc.)
test_hw_acc_enabled_3.1.rar - android sources with html5/javascript page in assets (index.html).
Please note, that if you run this page in native browser that is pre-installed on Samsung Galaxy Tab 10.1 - you'll get same lags because HW acceleration enabled in this browser by default. So all Tegra 2 advantages lost here even in comparison with my 800mhz phone on Android 2.1.
No any 3rd-party libs or plugins used, here is small description:
Android sources:
AndroidManifest.xml :
enabling HW accell on application level
Code:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:hardwareAccelerated="true" >
hw_webview.java:
Code:
final WebView myWebView_hw_acc_enabled = (WebView) findViewById(R.id.webView1);
WebSettings webSettings1 = myWebView_hw_acc_enabled.getSettings();
webSettings1.setJavaScriptEnabled(true);
myWebView_hw_acc_enabled.setWebChromeClient(new WebChromeClient());
//enable hardware acceleration for the 1st view, this line can be skipped
//as acceleration enabled on application level by AndroidManifest.xml
myWebView_hw_acc_enabled.setLayerType(WebView.LAYER_TYPE_HARDWARE, null);
myWebView_hw_acc_enabled.loadUrl("file:///android_asset/www/index.html");
final WebView myWebView_hw_acc_disabled = (WebView) findViewById(R.id.webView2);
WebSettings webSettings2 = myWebView_hw_acc_disabled.getSettings();
webSettings2.setJavaScriptEnabled(true);
myWebView_hw_acc_disabled.setWebChromeClient(new WebChromeClient());
//disable hardware acceleration for the 2nd view
myWebView_hw_acc_disabled.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);
myWebView_hw_acc_disabled.loadUrl("file:///android_asset/www/index.html");
index.html - simple setInterval used with 60fps estimate (move by 1px every 15 ms), with additional plugins (example:jQuery.animate) or libs we have much more lags:
Code:
<div id="box" style="left:50px;top:50px;width:150px;height:100px;position:absolute;background:#000;"></div>
<script>
var left = 50; //initial position
var delta = 1; //pixels per iteration
var dir = 1; // direction 1/-1
function move()
{
var div = document.getElementById('box'); //get box
if ((left>500)||(left<50)) dir = dir * -1; //change direction
left = left + delta*dir; //change position
div.style.left = left+'px'; //update style with new position
}
setInterval("move()",15); //every 15ms - 60fps estimate
</script>
Example is only for simple html and javascript, but other modern features like CSS transitions, etc - have same problem.
Any idea how to fix this? I need HA enabled with expected performance increased but not decreased. As far as I understand - this is very big problem for android 3.0, because HTML5 is very popular and qty of HTML5 mobile application will only grow. Note that other modile systems work correctly (even 1st ipad and my motorola defy faster in HTML5 than overclocked honeycomb tegra 2 device)

I wonder if its because of the actual drivers being used. Is the video driver used by the kernel compiled in or insmod loaded during boot? I really havnt looked at how each driver is loaded in regards to Tegra 2 SOC.
Super wishful thinking would hope that maybe nVidia has a newer driver we could slap down and benchmark with HW accelleration?

Also... On my Tab with the test apk you made, two webviews actually start out at the same speed then the hardware accellerated one begins to lag at roughly 2 seconds into the movement across.
It never regains that same speed as the non accellerated view so its not likely a GC running/inducing issue as it would likely speed up after the GC event (assuming it doesnt cause continous calls to the garabage collector).

3.2?
any new ideas?
may be someone can run attached application on tablet with android 3.2 - just to check if bug fixed?

tested on acer iconia tab with 3.2 - same problem ;(

I tested this on Asus Transformer TF101 (Andoid 3.2.1) and the issue exists there too.

Tested on Samsung galaxy tab 10.1. Same problem
Sent from my GT-P7500 using Tapatalk

Anyone have benchmarked accelerated webview performance of Android 4.0?

Same problem here and with Android 4 on Galaxy Nexus,
android hardware acceleration is something that works bad and the problem is that they don't have fixed it yet.

sblantipodi said:
Same problem here and with Android 4 on Galaxy Nexus,
android hardware acceleration is something that works bad and the problem is that they don't have fixed it yet.
Click to expand...
Click to collapse
Damn, hate it when I accidentally hit the "thanks" button...
BTW- this thread is 1) long dead, 2) discussing android 3.1 on a tablet, not android 4.0 on a phone.

slack04 said:
Damn, hate it when I accidentally hit the "thanks" button...
BTW- this thread is 1) long dead, 2) discussing android 3.1 on a tablet, not android 4.0 on a phone.
Click to expand...
Click to collapse
Is this thread expired?
I saied that I have the same problem on the tablet and on the android 4 device.

I know I'm late to this thread but the way you are doing your move is wrong. When you do DOM manipulation (by setting left/right) you force a repaint, which means you get none of the benefits of hardware acceleration and all of the downsides. You need to use CSS 3D transforms instead, which allows the browser to avoid repainting entirely making it silky smooth as a result.

Related

[Q] Cisco Cius table root help please

I Just recieved my Cisco Cius Tablet, Comes with this info in the about section
Model number: Cius
Android Version: 2.2.2
Kernel version: 2.6.31.6-mrst
[email protected]#1
Build number: FRG83G.9.2.1SR1.19SEC
I would really like to root it, I haven't found anything on how to go about it and there is no section here. I have Adb installed and connecting to the device but I'm getting permission denied on just about everything. Is there a way to get root on this, Has anyone started developing on the platform? I would be happy to put in some work to get it going, at least rooted if not make a rom, but I have no idea how to get root on it.
I talked to one of the guys at cisco support about an unrelated issue but during the conversation I found out that it has an intel processor rather then an arm processor. I figure that that has alot to do with why I have been unable to get any of the android 2.2.2 root kits to work with the rageagainstthecagearm5.bin files that everyone is using on phones. Any help would be greatly appreciated.
If other people are interested maybe even get a development section up for the device.
Thanks
Thought It might help if I got the tablet specs:
Display
• 7-in. diagonal (153.6 H x 90.0 V)
• Backlit, WSVGA capacitive touchscreen LCD with 1024 x 600 pixel effective resolution
• Support for various multi-touch gesture commands to interact with contacts, collaboration applications, voice and video calling, and third-party applications
Operating system
Android 2.2.2 (Froyo)
Processor
Intel Atom Z615 Processor (512-KB cache, 1.6 GHz)
Storage
32-GB eMMC flash memory
Memory
1-GB RAM
Weight
1.177 lb (0.534 kg)
Dimensions (H x W x D)
5.5 x 8.85 x 0.59 in. (140 x 225 x 15 mm)
Battery
• Removable 4960 mAh battery
• Up to 6 hours for typical business use, which includes HD videoconferencing and web conferencing, collaboration, browsing, etc.
Sensors
• 3-axis gyro
• Accelerometer
• Global Positioning System (GPS)
• Ambient light sensor
Location sources
• 802.11a/b/g/n Wi-Fi
• GPS
Physical buttons
• Power
• Volume control
• Mute
• Menu (Android button)
• Home (Android button)
• Back (Android button)
Options
Product options that support Wi-Fi only, and 3G/4G to allow always-on connectivity (available soon)
Multimedia
Forward-facing camera
• HD video communication with Cisco TelePresence interoperability and other H.264 video endpoint interop for immersive video communication
• Capable of 720p 30-fps HD video encoding and decoding
• LED indicator to show video status
Rear-facing camera
Ability to capture 5-megapixel still pictures or 720p (1280 x 720) quality video
Ports and slots
• Micro SD slot
• Micro USB
• Micro HDMI
• 3.5-mm stereo headphone jack
Audio codecs
AAC-LC, HE-AAC, MP3, WAV, G.711, G.722, G.729, iSAC, and iLBC
Please use the Q&A Forum for questions Thanks
Moving to Q&A
now that cisco has abandon the cius all together i wonder if we can get it rooted...
Cius will no longer be available to be sold after march 22nd this year but HW support won't end til march 22nd 2016...
http://www.cisco.com/en/US/prod/col...90/ps11156/end_of_life_notice_c51-717226.html
looking at a forum thread at cisco.com they'll take the stance of "security" and the fact it's still being "supported", whatever that really means, when asked, kernel source or rooting... too bad wonder if anyone can bribe a cisco dev to give us the details on how to root...yeah right.
https://developer.cisco.com/web/ciu...sage_boards/message/6452457?p_p_auth=40l4IazY
For the time being, considering how much a single one of these tablet costs, doubt many devs have one, or access to one.
My company has about 3-4 of these (with the HD media, aka phone,docks), we got them for free since we made a major purchase to upgrade our old nortel phone system to them, so i'm glad we didn't have to plunk down any cash for them afterall.
I have 1 of them and am playing with it but I'm not a dev so I wouldn't even know where to begin on rooting it.....
hi mate,
any luck with rooting? 2.2.2 can't do anything much for now....
i've got a unit too... don't know anyone currently working on this product inside cisco sys... they moved on to another android desk phone (non tablet).
Rooting
felix_fx2 said:
hi mate,
any luck with rooting? 2.2.2 can't do anything much for now....
i've got a unit too... don't know anyone currently working on this product inside cisco sys... they moved on to another android desk phone (non tablet).
Click to expand...
Click to collapse
I have a Cius and just started looking on sites for any rooting tips. I am currently using my Cius at my place of employment as my own personal company phone. But I would also like to upgrade the software. I will keep hacking away at it and if anyone gets any success please post.
Android Beast said:
I have a Cius and just started looking on sites for any rooting tips. I am currently using my Cius at my place of employment as my own personal company phone. But I would also like to upgrade the software. I will keep hacking away at it and if anyone gets any success please post.
Click to expand...
Click to collapse
All those apk 2.2-2.3 rooting apps i have tried, no joy.
SRSRoot for Android cannot detect it as well, how are you going at it?

[Q] Help with hardware accelerated video in Android 3.2

Hi All, this is my first post here so here i come!
We're developing an app that uses video to texture spheres and render panoramas.
The way we did until now was to use ffmpeg to do software decoding of a video (our sources are really big, on full scale it's a 5700x2400 image).
The problem is that it's not really feasible, it's way too slow.
So we tried to hardware decode stuff on the gpu: but the problem is that the decoded data is not memory accessible: the accelerated methods in the mMediaPlayer class are only for playback, we cannot really manipulate data into a textured sphere.
We tried to work with api 14 (ICS), and there's a native method that's been added to the class that makes things go remarkably well even at highres:
Code:
mTexture = new SurfaceTexture(texId);
mTexture.setOnFrameAvailableListener(this);
Surface surface = new Surface(mTexture);
this.mMediaPlayer.setSurface(surface); // set Surface exists since API 14
Our problem is, while there's the homebrew scene and all, we really have to complete the job on 3.2
Do you reckon anything that could help us solving this annoying 3.2 limitation?
Maybe we've overlooked something. Or maybe there's some third party module that decodes using hw acceleration that we didn't know of (some obscure ffmeg fork maybe?)
We also thought about going through all the sourcecode from 3.2 and 4.0, deriving a class from upstream (where the two versions are similar) and ther rework our code backwards to implement that functionalityon 3.2 using 4.0 as a blueprint, but it seems as overkill as it gets.
And we don't have that much time left until the end of the project.
Thanks in advance to everybody that's reading and for the answers!
Max

my tablet stuck on the android logo

my father gave me a tablet as a present which only used for less than 1 month. The tablet is stuck of the android logo and i have tried to reboot it using the volume key and the on button but its not working. It was in a box but no manufacturer's name is written on it all that is written is android tablet pc. I cant open my tablet to see all the details about it all i have is a user manual with the following specifications.
Basic function
OS Android 4.0
CPU ARM Cortex-A8 1GHz - 1.5GHz
RAM 512M-1GB(optional)
ROM Nand Falsh 4GB/8GB/16GB(Optional)
LCD 7' 8' 9.7'(OPTION) HP display
Touch panel Capacitive/Resistance Touch Panel(Optional)
2D/3D AMD graphic acceleration, full support
Graphic Open GL ES2.0(AMD Z340)and Open VG1.1(AMD Z160)@27M Tri/sec
WIFI wireless Support 802.11b/g/n standard, highesttransmission get to 300Mbps,support local WAPI wireless protocol standard
3G Built-in 3G Module(option), WCDMA/HSDPA,supoort calling, message, Wifi ad hoc
TF expansion for optional 3G module to realise 3G communication. External MICRO SD(TF)slot.Max. 32GB TF card
USB USB high speed 2.0. Can be connected to the computer to copy files
VPU Maximum support hardware decoding 720P and 1080i, and 480 video encoding
Gravity Built-in 3D gravity sensor to make screen realize360degree rotation
Audio support gravity sense operation game. AC'97 full duplex codec, support AAC/AMR/MP3/WMA/WAV/MIDI and so on
Video WMV/ASF/MP4/3GP/AVI/MKV/VC-1/DIVX/MPEG-2/MPEG-4/H.263/H.264 720P HD 10S0i
Game Support several of entertainment games based on Android platform.
Web Support many-internet applications like web, social,video,chatting and so on.
E-book Assemble e-book tool to read based on android platform
Photo Frame Built-in photo player, and take it as a photo frame or calender
Office Support various of office software based on Abdroid platform, to realize office functions, Such as Word/Excel/PPT/PDF
Flash a custom rom using flashtool supporting ur tab.
Or better search Google if u find info about ur tab go to service center
Sent from moon to earth........

[Q] Upgrade/Update Prestigio Multiphone 5000 / Iris 501 Duo to 5.0 Lollipop

Any developers on this?
I have found this site, but does this work?
www[.]lollipop-roms[.]org/mp3-0/prestigio-multiphone-5000-duo-5717.html Remove []
The users of Prestigio Multiphone 5000 Duo can now update their handsets to Android 5.0 Lollipop using custom ROM. The new Android 5.0 Lollipop comes with many new features :
- Up to 4x performance improvements.
- A battery saver feature which extends device use by up to 90 mins.
- It has a faster, smoother and more powerful computing experience.
- Support for 64-bit SoCs using ARM, x86, and MIPS-based cores.
- OpenGL ES 3.1 and Android extension pack brings Android to the forefront of mobile graphics putting it on par with desktop and console class performance.
- Responsive, natural motion, realistic lighting and shadows, and familiar visual elements make it easier to navigate your device.
- More intelligent ranking of notifications based on who they’re from and the type of communication. See all your notifications in one place by tapping the top of the screen.
- New devices come with encryption automatically turned on to help protect data on lost or stolen devices.
- SELinux enforcing for all applications means even better protection against vulnerabilities and malware.
- State of the art video technology with support for HEVC main profile to allow for UHD 4K 10-bit video playback, tunneled hardware video decoding to save power and improved HLS support for streaming.
- and other cool features.
That thing doesn't work. Just some fellow trying to get money
Lost my hope
Any better / Latest ROM available? Mine is stock 4.1
awesomecuber said:
That thing doesn't work. Just some fellow trying to get money
Click to expand...
Click to collapse
U can try mine. WiFi doesnt work. But everything else does. Search for lollipop ROM for iris 501 in the forums

Remix OS for PC Update, Version#: 2.0.402, Release Date 07/05/2016

Valued Remixers,
Remix OS for PC 2.0.402 Is released. All your feedback did contribute to the release. Thank you!
Listed are the change log of this update. We are eager to hear your voice. Please share your experience at here https://docs.google.com/forms/d/1cZNesOmnmO2esilFpvMzFZ874rvwsiKgWIX2fo9QsDk/viewform
System
Fix: Screen-recording issue on Remix OS is fixed.
Fix: Some cases on applications not running are fixed.
Fix: The slowing down of the system when mounting hard disks is fixed.
New: Keyboard mapping for certain games has been added to allow users to play said games with keyboards.
New: Chrome is now pre-installed on Remix OS for PC.
New: Users can now stay on desktop mode using pre-installed Chrome Switcher.
New: “Low power” warnings have been added.
New: Now supports more H.265 video formats.
New: Now supports more ethernet cards.
New: Now supports more Realtek/Broadcom/MediaTek WiFi cards.
New: Mirrored output from DP, HDMI & VGA are now supported.
New: More NVIDIA graphics cards are supported with improved stability.
New: Scrolling and right-click on some trackpads are enabled.
Optimization: Video display quality is improved.
Optimization: System bootup time is improved.
Optimization: Thermal monitoring system is improved to avoid overheating.
System User Interface
Fix: The task bar disappearing on its own is fixed.
New: Remix OS default wallpaper is updated.
New: Remix OS boot up animation is updated.
Settings
Fix: Time inacurrancy on Windows when users switch back from Remix OS is fixed.
Optimization: Wi-Fi stability is improved.
App Compatibility
Fix: Users can now send out emails using Yahoo Mail.
Optimization: App compatibility is improved.
Remix Central
New: Game collection is added to Remix Central.
New: More apps have been added to Remix Central.
Thanks but my Realtek wifi chip isn't supported. It is BCM43228.
Sent from my on Z00A using XDA Labs
Just delete the bcma folder in module and it will start working.
failed update issues
how do i use keyboard mapping
edit: good release so far, i can remove the nomodset settings and runs cooler for normal usage.
Thanks. It's a huge improvement from last update. Soo much quicker and smoother. Everything works, taskbar is back , all is well.
I don't know about you all, but I don't have any "Game Collection" area in my Remix Central. And yes, I'm on the newest update.
Edit: Also, may we get a list of games that have the keyboard mapping?
Still can't get Remix to boot on my Dell Inspiron 5150.
However, of all the releases so far (hacked and official). this is the only one that has given a clear message. I usually can't boot the nVidea graphics.
intel_powerclamp: Intel powerclamp does not run on family 15 model 2
intel_rapl: driver does not support cpu family 15 model 2
Processor: Mobile Intel Pentium 4 2.80GHz
Family, Model, Stepping: 15, 2, 9 (Pentium 4)
I'm wondering if this is related to the SS3 instruction set, as the only version of Android I could get to run was an early version of Android x86 patched for SS3 running in generic vga mode.
volram said:
Just delete the bcma folder in module and it will start working.
Click to expand...
Click to collapse
Where is the bcma folder?
volram said:
Just delete the bcma folder in module and it will start working.
Click to expand...
Click to collapse
How will this fix wifi problem?
Sent from my on Z00A using XDA Labs
"New: Mirrored output from DP, HDMI & VGA are now supported." Does it mean that now i can use my heaphone on remix os ??
Sr for my bad english .
Mediatek 7630E (MT7630E) wifi is still not detected on my Asus TP300LA. Any ideas?
Realtek RTL8723BS Wireless LAN 802.11n SDIO Network Adapter didn't work (there is a driver on it for github) and the Intel SST Sound (Realtek i2s Audio Codec) are also not working
Wow i managed for the first time to make this one work on my old and ancient PC, ASUS P5N-MX with NVIDEA GeForce 7050 / nForce 610i chipset.
I had to edit the "menu.lst" file on the end of kernel line at the Remix Os folder from windows by adding the "nouveau.modeset=0"
Remix Os boots now fine and looks like everything works, internet, sound keyboard mouse etc.
The only problem am facing is the low resolution and i cant change it is like a default one. Any help with this as from the settings within Remix Os the change resolution doesnt show up? Is there any other line i can add or edit to increase the resolution !?
Thnx
Sent from my Moto G using XDA Labs
"There was a problem communicating with google server
try again later"
can't open play strore after update to v 2.0.402
how to fix it?
Still no sound on HDMI, and now not root console either??? Wtf?!?!!
In the experimental Settings you can activate the root console again.
RemixOS_Cameron said:
Valued Remixers,
Remix OS for PC 2.0.402 Is released. All your feedback did contribute to the release. Thank you!
Listed are the change log of this update. We are eager to hear your voice. Please share your experience at here https://docs.google.com/forms/d/1cZNesOmnmO2esilFpvMzFZ874rvwsiKgWIX2fo9QsDk/viewform
System
Fix: Screen-recording issue on Remix OS is fixed.
Fix: Some cases on applications not running are fixed.
Fix: The slowing down of the system when mounting hard disks is fixed.
New: Keyboard mapping for certain games has been added to allow users to play said games with keyboards.
New: Chrome is now pre-installed on Remix OS for PC.
New: Users can now stay on desktop mode using pre-installed Chrome Switcher.
New: “Low power” warnings have been added.
New: Now supports more H.265 video formats.
New: Now supports more ethernet cards.
New: Now supports more Realtek/Broadcom/MediaTek WiFi cards.
New: Mirrored output from DP, HDMI & VGA are now supported.
New: More NVIDIA graphics cards are supported with improved stability.
New: Scrolling and right-click on some trackpads are enabled.
Optimization: Video display quality is improved.
Optimization: System bootup time is improved.
Optimization: Thermal monitoring system is improved to avoid overheating.
System User Interface
Fix: The task bar disappearing on its own is fixed.
New: Remix OS default wallpaper is updated.
New: Remix OS boot up animation is updated.
Settings
Fix: Time inacurrancy on Windows when users switch back from Remix OS is fixed.
Optimization: Wi-Fi stability is improved.
App Compatibility
Fix: Users can now send out emails using Yahoo Mail.
Optimization: App compatibility is improved.
Remix Central
New: Game collection is added to Remix Central.
New: More apps have been added to Remix Central.
Click to expand...
Click to collapse
Accidentally deleted initrd.img of this version. Could you please upload a copy of it? Thanks!
Alkuhl01 said:
"New: Mirrored output from DP, HDMI & VGA are now supported." Does it mean that now i can use my heaphone on remix os ??
Sr for my bad english .
Click to expand...
Click to collapse
That means Video output, not audio. You should be able to use your headphones anyway. There are 2 sound profiles, one for without headphones and one with headphones. If you plug or unplug your headphones and the sound volume changes, just readjust the volume level.
Updated then this error appears: ↓
(remix os in desktop pc, installed )
This message appears:
.
.
.
[ 0230018] Failed to find cpu0 device node
Detecting android-x86... foun at /dev/sda7
Checking data partition ...
[email protected]_x86_64:/ #
What can i do to fix this and run remix os normally like before?
Help please :c
My pc specs:
- intel core i5 @3.20 3.19 GHz
- 4GB RAM
- intel hd graphics

Categories

Resources