I’m looking into scripting for my game.
I’ve taken a look at Java’s javax.script.* package, and it just sucks in regards of speed. I’ve also taken a look at Groovy, and it’s better, runs fast with few objects (100’ish) but not fast enough with 500+.
Here’s an example of 500 images being rotated:
-
Java’s javax.script package/Rhino: under 10 fps.
-
Groovy: 90 fps.
-
Just plain old Java: 480 fps.
I know scripting isn’t as fast, but I wasn’t expecting this.
What am I doing wrong?

