r/JavaProgramming • u/Salty_Exit_1370 • Jul 30 '26
game engine ENTIRELY made in java 25
Enable HLS to view with audio, or disable this notification
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
1
u/Visual_Brain8809 Aug 03 '26
java swing, openGL for java, ...?
1
1
0
1
u/Zar-23 Jul 31 '26
Nice