-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Describe the Issue
I use FFM to interact with SDL in java game engine. Native version performs about 20 times slower than on the same JVM (400 -> 25 fps drop). I suspect inefficient implementation of native calls.
Using the latest version of GraalVM can resolve many issues.
- I tried with the latest version of GraalVM.
GraalVM Version
java 25 2025-09-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 25+37.1 (build 25+37-LTS-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25+37.1 (build 25+37-LTS-jvmci-b01, mixed mode, sharing)
Operating System and Version
Linux 5.15.0-139-generic #149~20.04.1-Ubuntu SMP Wed Apr 16 08:29:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Troubleshooting Confirmation
- I tried the suggestions in the troubleshooting guide.
Run Command
./app
Expected Behavior
runtime performance on par with JVM
Actual Behavior
20x slowdown
Steps to Reproduce
I'm using org.graalvm.buildtools.native Gradle plugin with default configuration and additional jvmArgs.add("--enable-preview")
Additional Context
No response
Run-Time Log Output and Error Messages
No response