View Single Post
Old September 30th, 2012, 11:02 PM   #4 (permalink)
Senior Member
jonbonazza's Avatar
Join Date: Jul 2010
Gender: Male
Posts: 1,935
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts

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.
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
donovanvaught (October 2nd, 2012)