I highly doubt that your method is causing hte frame drop. If I had to guess, it would be the OpenGL calls themselves that are causing the drop. Unfortunately, the OpenGL library is a C library, and thus must be implemented via the Java Native Interface (JNI) in order to be accessible in Java. JNI calls have a large amount of overhead and FPS drops like this are not uncommon. Because of this, many games in Andorid are implemented almost entirely in C/C++ and only tap into the Java Android SDK for certain things, such as UI elements (buttons, text boxes, etc...), sensor management, or other more device-specific functionality.
|