Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


[java] scrolling large images, lots of flickering and choppy

This topic is 5929 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

I wrestled with getting smooth, flickerless movement in my game for a while, and I really succeeded for the most part. Until now where I''m adding about a 400x300 image to my game, it needs to move across the screen. All of my other images are about 60x60 or less, they scroll and move just fine. But this big one has a ton of flicker and kinda chugs along as it moves. I''m using a BufferStrategy set to triple buffering, and the image is just a plain ol'' Image. Any ideas?

Share this post

Link to post
Share on other sites
Are you using compatible Images?

If you are not getting true v-sync ( since bufferstategy does not guarantee that ). Without v-sync left to right movement might look split on a horozontal line.

Are you hemoraging memory? Simple actions like "String " + fps end up eating several hundred K per second at 30+fps. Check the runtime memory statics to see how you are doing. The less you are loosing per frame the better off you are.

Cheers and good luck

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!