简体   繁体   中英

Game running at 18 fps in exported jar, and 40 fps in Eclipse?

I'm currently making a 3d game in Java. My problem is when I run it through Eclipse, I'm getting about 40 fps, which is fine. Though when I run it in an exported jar file, I'm getting 18 fps?

I'm not really sure what's wrong, does anyone know what the problem could be?

Hard to tell without more info but some possibilities are:

  • different JVM being used by Eclipse than your default system JVM
  • different command-line parameters (especially ones relating to graphics) between your commandline invocation and your Eclipse run profile
  • copies of the application still 'live' within Eclipse and stealing resources from the external copy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM