Jump to content
  • Advertisement
Sign in to follow this  
zappsweden

[java] Java 6 made my old 1.4 code sluggish!

This topic is 4156 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I took my old Jav 1.4 source code, compiled+ran in Java 6 I solved old annoying issues like the infamous "Gray rect" bug. Also, the main menu and its sub menus had the same speed, BUT as soon as I jumped into the war screen and started painting frames on my map it went WAY slower than in 1.4 There was also delay on my mouse clicks events. It was so sluggish I cannot use it. I am using full screen API, passive rendering. Are there any things I should be checking and tweaking when jumping to Java 6, like SwingWorker and stuff? Are there any "Must haves" ? By the way, I paint my graphic on a JPanel (map, units, Fow, icons and stuff).

Share this post


Link to post
Share on other sites
Advertisement
Profile the code, and you shall have the bootleneck. With that, it's easy to find out if it is indeed the version's fault. Post back when you find out about that, and the smart people here will be able to point out the reason why.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!