While browsing the API, I noticed the class java.lang.Compiler. I was wondering if it was possible to use it to try and prod the hotspot compiler into compileing your classes before you start up the main game loop?
I’ve been working on my game both windows and linux, and it seems to me, that under linux my game takes a long time untill it is running at full speed, where as under windows after about 5 seconds of play, it stabilizes at 25 frames per second. I’m not sure, but it would seem that the hotspot compiler is taking a lot longer to figure out what it wants to optimize, and compile it under linux.
Could I somehow use java.lang.Compiler to reduce the amount of time it take my game to get to full speed under linux? What exactly is Compiler there for, and should I be using it?
Thanks in advance
- Luke