与Nexus 10的上Android 4.3的滚动时的糟糕表现 [英] Bad performance when scrolling on Android 4.3 with Nexus 10

查看:198
本文介绍了与Nexus 10的上Android 4.3的滚动时的糟糕表现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序,其中有一个列表视图与一些滚动,正在执行非常好对我与,歌Nexus One和Nexus 4和Galaxy S3 / 4测试过的所有手机(在60fps滚动)。但性能上的Nexus 10的可怕,大概在15帧左右。

My app, which has a list view with some scrolling, is performing very well (scrolling at 60fps) on all phones I have tested it with, Nexus One, Nexus 4 and Galaxy S3/4. But the performance is terrible on the Nexus 10, probably around 15fps or so.

我分析它是执行图形管线的一部分。我附上一台Nexus 10的屏幕截图和的Nexus 4,这是运行Android 4.3,没有有趣的东西。

I have analysed it to be the Execute part of the graphics pipeline. I have attached a screenshot of a Nexus 10 and a Nexus 4, which are running Android 4.3 and no funny stuff.

用户界面是在相同的大小,即使拉伸,以约相同量的像素。所以它只是表面覆盖的20%的的Nexus 10和90%的手机表面的。这意味着它不是这就是问题的像素的数量。另外,我已经检查,这样,当我滚动,这是唯一的已更新的滚动区域,而不是整个画面。

The UI is even drawn at the same size, with approx the same amount of pixels. So it is just covering some 20% of the surface on the Nexus 10 and 90% of the surface on the phones. This means that it's not the number of pixels that's the problem. Also, I have checked so that when I scroll, it is only the scrolling area that are updated, not the entire screen.

我想知道是,我如何找出是什么原因造成的秀上的Nexus 10执行阶段?

What I am wondering is, how do I find out what is causing the show Execute phase on the Nexus 10?

干杯,
的Mikael

Cheers, Mikael

推荐答案

我有麻烦与滚动的时候有很多的地方在屏幕上NumberPickers的。太慢了!!
Mihael GREV的意见 mainView.setLayerType(View.LAYER_TYPE_HARDWARE,NULL);

I had troubles with scrolling when a lot of NumberPickers where on the screen. So slow!! "Mihael Grev" advice mainView.setLayerType(View.LAYER_TYPE_HARDWARE, null);

这篇关于与Nexus 10的上Android 4.3的滚动时的糟糕表现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆