gpt4 book ai didi

android - 在 root 设备上的所有应用程序中强制 Honeycomb 2D 硬件加速渲染?

转载 作者:行者123 更新时间:2023-11-30 04:42:20 25 4
gpt4 key购买 nike

希望得到非常聪明的 Romain Guy 的回答(但希望任何有想法的人都能回答!)。

之前,他写了以下内容来回应用户的提问 why HW acceleration wasn't enabled by default :

It is not turned on by default for compatibility reasons. Not 100% of the Canvas API is supported when turned on (although the missing parts are very few and rarely used) and there might be bugs in the new implementation. There are also new constraints (for instance if you try to draw a bitmap larger than the maximum OpenGL texture size, it will fail.)

The new rendering pipeline also uses native display lists for each View, which triggers bugs in some apps. For instance, if a View relies on its parent to invalidate() to redraw itself, it's a bug in the app, but it "works" without hardware acceleration. It will however not work with hardware acceleration on.

Our goal is to make hardware acceleration on by default as soon as possible but we do not want to break apps. That said, apps using standard views and APIs should work just fine.

我想知道是否有任何方法可以强制在 root 的 Honeycomb 设备上默认打开 Honeycomb 的硬件加速。尽管存在潜在问题,但我仍然有兴趣试一试。我粗略地扫了一眼 build.prop,没有找到任何东西。请问有人愿意为我指出正确的方向吗?

提前致谢!

最佳答案

你可以做到,但没有系统属性。您将需要修改源代码或编译代码。 hwAccelerated 标志的检查在几个地方完成(在 ActivityManager 中,然后在 ViewRoot 中。)

关于android - 在 root 设备上的所有应用程序中强制 Honeycomb 2D 硬件加速渲染?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5749015/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com