开发者

Does the Honeycomb android:hardwareAccelerated="true" manifest setting apply for Live Wallpapers?

I have a live wallpaper that I originally coded to 开发者_JS百科use canvas rendering for phone-sized screens. But when running it on a Xoom tab the framerate degrades noticeably, presumably due to the increased screen resolution.

I tried adding android:hardwareAccelerated="true" to the application element of my manifest, however the framerate remains degraded. Checking the canvas object Android passes to my WallpaperEngineHelper class' onDraw method shows that the canvas is indeed not accelerated:

    @Override
    protected void onDrawFrame(Canvas c) {
        c.isHardwareAccelerated(); //returns false
        ...

Am I missing something or should I re-code with a GL surface?


Romain mentions that this is not supported in 3.0 in this group discussion.

Chet Haase recently posted about some hardware acceleration profiling. The sample code may be of use to you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜