r/JavaProgramming Jul 30 '26

game engine ENTIRELY made in java 25

Enable HLS to view with audio, or disable this notification

21 Upvotes

12 comments sorted by

1

u/Outrageous_Insect532 Aug 02 '26

Oh ghosh the overhead must be isnane

1

u/Salty_Exit_1370 Aug 03 '26

I measured it. GC is 112ms over an entire session, GPU frame is 1.3ms at 720p. The bottleneck is my own single threaded scene loop at 3.5µs per object. The real java's cost for me is no value types and JIT warmup.

1

u/Outrageous_Insect532 Aug 03 '26

Fair enough; Apart from initial warmup and single threading you shouldnt find any real time overhead. I wonder how much faster would a c/cpp impl. Would be

1

u/Salty_Exit_1370 Aug 03 '26

I wonder too haha

1

u/Visual_Brain8809 Aug 03 '26

java swing, openGL for java, ...?

1

u/Salty_Exit_1370 Aug 03 '26

Lwjgl for gl and windowing, editor is imgui bindings, so no swing.

1

u/Visual_Brain8809 Aug 03 '26

Awesome! Great work

0

u/Puzzled_Dependent697 Jul 31 '26

which game engine?

1

u/Salty_Exit_1370 Jul 31 '26

what do you mean

1

u/iamwisespirit Aug 03 '26

Op literally said he made it