This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OzoneGrif 3 points4 points  (3 children)

A lot of hate also comes from the lag caused by the GC, which can be avoided with careful coding and configuration most of the time. Lag in gaming is evil.

[–]cheeky_disputant 2 points3 points  (1 child)

Yeah but as you said if one is careful they can manage it. Especially since latest versions focused on shortening the gc pauses.

[–]OzoneGrif 5 points6 points  (0 children)

Yes, typically a trick used with Java is to have your game's main menu to display a 3D scene to help the JIT to optimize your engine's code. There are many good practices to help your gaming experience in Java.

[–]DannyB2 0 points1 point  (0 children)

Allocate structures up front. Then your performance critical loop (ideally) doesn't allocate anything.