Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I m new to Game Development. I've chosen AndEngine, but there are 2 versions: gles1 and gles2. I tried sample code from both and found that gles2 code is not run on an emulator, but required an actual device. And in gles2 there are also BaseGameActivity and SimpleBaseGameActivity. I'm a little confused. Which is best?

share|improve this question

closed as not constructive by Byte56, Josh Petrie, Sean Middleditch, bummzack, Nicol Bolas Feb 24 '13 at 13:18

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Beginners should normally use the newest stable version possible. What do you mean by "requiring an actual device"? All software requires hardware. –  Anko Feb 22 '13 at 10:11
    
Is this what you're asking? –  Anko Feb 22 '13 at 10:14
1  
For testing code emulator is required but when i tried to run it on emulator it give me this error org.andengine.opengl.view.ConfigChooser.chooseConfig(ConfigChooser.java:183) and when i search on this error i came to know that it(AngEngine gles2) will work only on actual device(means mobile or tablet) is this true? Thanks in Advance. –  Bin Feb 22 '13 at 11:17
    
I don't know about the AndEngine, but I've gotten gles2 applications to run fast on a virtual device. You just have to create an x86 Ice Cream Sandwich image with HAXM support enabled and host GPU enabled. Unfortunately this only works with pure Java applications or those that have native elements built for x86. –  Panda Pajama Feb 23 '13 at 9:48

1 Answer 1

up vote 6 down vote accepted

USE GLES2

AndEngine is a little tricky to get configured properly the first time you try. I recommend installing the version stored at RealMayo's github, which is a stable version. That's a version of GLES2 and yes, it's definitely worthwhile to use GLES2 over GLES1. Many new features were added that make life easier, improve performance, and add great features to your games and projects. When you're ready to install, follow the instructions at this link and follow them precisely.

GLES2 WILL run on an emulator, I do it every day, so if you're having some problem running your app, you need to show us the log output. It might be a memory issue if your computer doesn't have enough memory to run the emulator and install it to the emulator. See this thread.

BaseGameActivity versus SimpleBaseGameActivity

The first thing that we have to realize is that BaseGameActivity for GLES2 (the version we are using) and BaseGameActivity for GLES1 are completely different. When AndEngine updated, so did BaseGameActivity, but a lot of people that were using GLES1 didn’t like the changes and wanted to work with a class they were already familiar with. Therefore, SimpleBaseGameActivity was created for GLES2. SimpleBaseGameActivity is practically the same as BaseGameActivity for GLES1, which is what a lot of the AndEngine developers wanted at the time.

(source). My advice (and practice) is to use GLES2 with the BaseGameActivity.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.