Hello everyone !
My problem today is that I use 2 SurfaceView at the same time in my AR software. One is for display the camera of the device. It's a custum class that extends SurfaceView :
public class CameraView extends SurfaceView implements SurfaceHolder.Callback
The second is a GLSurfaceView where I render all my objects with jPCT :
setmGLView(new GLSurfaceView(this.application));
setCameraView(new CameraView(this.context));
setRenderer(new MyRenderer());
getmGLView().setRenderer(getRenderer());
getRenderer().initialize();
But when the both are display, a little lag come. But when I display only one, it's good and very fluent.
Maybe It's not the good solution to display my camera on an other SurfaceView. But I don't understand how to correct the problem and delete the lag. Anyone have an idea ?