Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15750] Android: Enable Android Hardware Acceleration by default in tiapp.xml

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2016-09-02T05:58:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsSupportTeam
ReporterJustin Toth
AssigneeEric Merriman
Created2013-11-19T21:16:24.000+0000
Updated2017-03-21T22:52:48.000+0000

Description

By default Titanium apps don't come with Android hardware acceleration enabled. This causes apps to be significantly slower, especially on Android tablets. Native Android projects with newer SDK's enable hardware acceleration by default. I propose that Titanium do the same thing, when a new Titanium project is created, add into the tiapp.xml to enable hardware acceleration.
<android xmlns:android="http://schemas.android.com/apk/res/android">
    	<tool-api-level>11</tool-api-level>
        <manifest android:versionCode="1" android:versionName="1.0">
            <supports-screens android:anyDensity="true"
                android:largeScreens="true" android:normalScreens="true" android:smallScreens="false"/>   
			<uses-sdk android:minSdkVersion="8" targetSdkVersion="14" />
			<application android:hardwareAccelerated="true"> 
                <!--activities go here-->
            </application>
        </manifest>
    </android>
The implication of not doing this is that you're leaving it up to the developer to know that they should enable hardware acceleration for Android. Titanium developers without native Android experience will not know to do this, and then will be wondering why their Titanium apps don't perform as well on Android as native apps do.

Comments

  1. Tim Poulsen 2013-12-10

    Perhaps a duplicate of TIMOB-7508?
  2. Justin Toth 2013-12-10

    Looks like it. Maybe the tiapp.xml sample above could be added to that other ticket, as it doesn't show how to enable it.
  3. Chris Barber 2016-09-02

    Dupe of TIMOB-7508.
  4. Lee Morris 2017-03-21

    Closing ticket as duplicate with reference to the above comments.

JSON Source