Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 19
    No, protability isn't better in Java in the video game world. Most console don't have a JVM. For portability reasons, C++ is prefered to java in video game world. Commented Oct 11, 2012 at 14:07
  • 5
    Why is library ecosystem a bonus for Java? Networking, sound, key-value pairs - that's not a thing; that's avilable everywhere nowadays. I would actually argue that AI and image processing is much easier done with C/C++ libraries (fann, OpenCV). Commented Mar 11, 2013 at 18:50
  • 4
    More important than FPS, I would perhaps emphasize consistent frame rates. I can have my game running at 100FPS, but if some of those frames take half a second, that's just not going to do. Even if GC is fast, if it causes noticeable irregularities it's still a problem. (This speaks nothing to Java's performance in particular, just a general problem to keep in mind) Commented Mar 24, 2014 at 4:12
  • 2
    I wrote a first person shooter in Java and I have never had any trouble with the garbage collector even when I didn't use one with low latency. Anyway, when the memory isn't allocated on the Java heap, it's up to me to deal with it without the garbage collector and most of my memory footprint comes from the VBOs. In other terms, the garbage collection isn't a problem because it works when it's used for what it's designed for and it's not up to it to handle large objects on the GPU or on the native heap (!= Java heap). Don't blame an anvil for not being an efficient mean of brushing your teeth. Commented Aug 4, 2017 at 11:22
  • 2
    @deadalnix The video game world isn't only composed of the consoles. Commented Aug 4, 2017 at 11:26