Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GameDevelopment: (Java & OpenGL) or (C++ & OpenGL & SDL)? [closed]

Tags:

java

c++

opengl

sdl

Since Java supports OpenGL, what is the best option for developing a game?

  • Java + OpenGL
  • C++ + SDL + OpenGL

I always avoided Java (in game development, of course) because of it's speed. But, I discovered that Java supports OpenGL. So, I think speed can't be the problem anymore. What should you choose? Are there remarks?

Java would be a lot easier for me, because of my experiences in Java and the garbage collector.

like image 457
Martijn Courteaux Avatar asked Mar 07 '11 16:03

Martijn Courteaux


1 Answers

If you go down the Java route you may need to ship the JVM along with your game. That's not to say don't do it but many people may not have Java installed or not have a recent enough version for the features and performance that you want. I haven't looked into the licensing requirements for shipping the JVM but that's probably something you'll want to investigate before making the decision.

You should also be aware that when highly tuning an app that although the Java API is the same across platforms that there are differences because the implementations of those often use the underlying OS. So I doubt that using Java would reduce the test burden at all for a game.

like image 147
Jeremy Avatar answered Oct 20 '22 10:10

Jeremy