我使用JUCE框架并且在我的Android ARM设备上出现了一个奇怪的性能问题,但在x86测试版上则没有。
问题: 当我触摸ARM测试设备上的屏幕时,android会请求对整个UI进行完全重绘(画布大小== desktop :: width x desktop :: height),而不会使UI上的任何区域无效。但是相同的代码在x86设备上没有这样做! 完全重绘需要很长时间(约300毫秒),而且ui感觉非常迟钝。
文件:app.java
public final class MyCustomView extends ViewGroup
{
// ...
@Override
public void onDraw (Canvas canvas)
{
// The canvas size is here == deskto::width X ::height
// after a onTouch MotionEvent.ACTION_DOWN on the ARM test dev
// This method calls C++ rendering code
}
@Override
public boolean onTouchEvent (MotionEvent event)
{
// ...
}
}
我不明白为什么android在不同的架构上处理不同的东西。它可能只是一个设备设置?任何的想法?
由于