Elektrine lite

← Feed

@vivalapivo@lemmy.today

Post #1969230

2026-04-07 15:21 UTC

1. Java should not be used for game engine design. Stop-the-world events and poor shaders support do not help. 2. JVM eats as much memory as you give it, so try playing with -Xmx param

Replies (2)

  • @SlurpingPus@lemmy.world 2026-04-07 19:29

    Java has been used by programmers of mobile games just fine, for ages. The trick is the same that one would need with any other environment: knowing what objects you'll need to allocate for a level, and not allocate more than that.

    Open ##1969231

  • @Alk@sh.itjust.works 2026-04-07 16:08

    Oh yeah I know all about that, I'm talking about what it actually uses within the JVM 😅 It's a messy monster of a game once modded, and there's really nothing you can do about it other than some slight optimizations here and there.

    Open ##1969232