Is a game made with Java viable?

1.3K    Asked by AnilJha in Java , Asked on Oct 13, 2022

I have scoured the internet, but there are not very many resources for Java game development, not nearly as many as C++. In fact, most engines are written in C++. I tried to play a game made with jMonkeyEngine, but the game was terribly slow, to the point where my computer froze. I had no other Java applications running, and nothing too resource intensive. In contrast, my computer can play most modern 3D games with ease. If I continue to learn and improve Java now, and it turns out that later I am required to learn C++, making the switch might be difficult.


Is Java an acceptable language for serious game development? By serious, I mean high quality graphics, without much lag on modern computers. I also want to consider making games for consoles.

Answered by Anisha Dalal

Not really. A game made with Java is not viable. Here's the thing- firstly, there's very little in terms of existing libraries for Java compared to virtually everything that is for C++.


  Secondly, Java as a language simply doesn't lend itself well to game development- I mean, for example, if you're dealing with GPU buffers then Java does not provide a language feature which will aid you in ensuring they are correctly locked and unlocked or disposed of, which C++ does. Plus, there's the performance problem- and the GC is non-deterministic, which is super-bad for a game.

I have never observed any non-indie game which spent significant time in a language that was not compiled to native code prior to execution, and even the indie games which do so are a rarity. So my belief right now is that it simply cannot be done. Also, if I continue to learn and improve Java now, and it turns out that later I am required to learn C++, will making the switch be difficult? Yes, absolutely it will. Java and C++ are vastly different, despite their superficial syntactic similarities. Java experience counts for virtually nothing when learning C++. Gameplay over graphics is a viable choice, and you can see it in the success of games like Terraria and Minecraft. But if you intend on creating srs graphics, then it's not going to be doable in Java.



Your Answer

Answers (3)

Hey, I was talking to a friend about how I needed something to switch off after another long day at work, and he told me to look up golden tiger casino review https://goldentigerplay.com/review/ before trying anything. I checked it out and then gave a few games a go, but at first I just kept losing tiny amounts and felt like quitting. Then I decided to take a slightly bigger chance and finally hit a win that made the whole evening feel better. I also noticed that players from Canada can get special bonuses and promo deals, which really helps stretch the fun. It’s become a solid way for me to relax when I need a break.

5 Months

Interesting discussion! While Java has its limitations for high-performance games, it's fascinating to see how some simpler games, like stickman hook, can thrive on less demanding graphics. Sometimes, gameplay mechanics and creativity can outweigh the need for high-end graphics, just like in those popular indie titles. It’s all about finding the right balance!

5 Months

When I stumbled upon the TRX casino page at TrueFlip the best tron casino, I didn’t expect much, but it exceeded my expectations. It’s one of the most responsive and intuitive crypto gambling experiences I’ve had so far. Tron’s low transaction fees make it incredibly appealing for frequent betting. The site itself is beautifully designed, and the game variety keeps things exciting. I really liked how quickly withdrawals processed compared to other coins. This is one of the rare places where using TRX actually gives you an edge in terms of speed and convenience. A must-try for anyone in the Tron ecosystem.

11 Months

Interviews

Parent Categories