Two GLSurfaceViews of the same kind

Problems with Canvas, OpenGL, etc...

Two GLSurfaceViews of the same kind

Postby Thijsiez » Fri Dec 16, 2011 12:02 am

Hi all,
I'm trying to make an OpenGL thumbstick/joystick as a library for games or rc apps etc. I'm using OpenGL for this since I wanted to save CPU power for any other calculations, which is also the reason I didn't use a regular SurfaceView. Now I have my all set up and running, but once I add a second Thumbstick to my layout I can only use one at a time and the one I use starts lagging heavily. After some Googling I came to the conclusion that this is being caused by both sticks using the same Context. Is this correct, and what could I do about it?
If a code snippet is needed you'll unfortunately have to wait because it's 00:03 here so the earliest I can upload a snippet is in about 8 hours, sorry :(
Junior Developer
Junior Developer
Posts: 12
Joined: Sat Dec 25, 2010 12:36 am


Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 1 guest