Why is java not recommended in modern game engines
Martin Taylor I have but I am not sure of its feasibility
On Android, you better still use C++ for MOST of the heavy lifting. On iOS Swift still can call C/C++ code if needed no big problem. After all, one of the biggest problems is not the language itself but mostly comes down to which low-level lib you can call with it. On the performance side, Java on AVERAGE "only(because in the end, it's a VM)" slower than C++ equivalent code(such as on game logic/NPC AI) optimally by around 30-50% GIVEN you have big and fast enough memory that's not bottlenecking the code execution itself by triggering GC constantly(30-50% is around 1-2 years of CPU hardware improvement now 2023). On C++, the programmers usually are more experienced with computer architecture, and the memory is managed more carefully manually by them when the timing is appropriate. And this is not accounting modern game engines make heavy use of SIMD instructions(such as on physics simulation) which is way faster on some operations than what JVM can provide now.