Blurry background motion

I have a 2d side scroller, and it seems that when the background is dark / uncomplicated there is no problem. When I move to a brighter and more complicated background however, the scrolling seems weird. Either it’s glitching or maybe it’s just a bad choice for a background.

At the moment I’m updating by using Timer.scheduleAtFixedRate, which on it’s own might be a bad way of doing things. The “problem” with the background got slightly better when I updated more often… but that won’t fly because that slows everything else down ( I need two windows open while I can test the multiplayer aspects ) And even then it still looks too blury when in motion.

Anyhow you can take a look here: www.homph.com/VampireHack.jar

The background off to the right with the trees is what is bothering me… nevermind the flying inactive second player :stuck_out_tongue:

So the problem would not be visible on a screen shot? If it would, I recommend posting one.

It sort of looks like I should be able to get a screen shot of it, but despite my many attempts I just got clean pictures. I tried video capture but with both programs open at the same time it was too choppy to really show anything.

Hmm okay. If the ‘blur’ means that things can briefly appear as duplicates close to each other it might be caused by the scrolling operation taking place from another thread than the rendering operation.

Nah, they’re in the same thread. If you can’t / won’t look at the .jar in my first post I’m pretty sure that you won’t be able to get what exactly is going on… I’ll give you a screenshot so you can look at the background… it could just be the complexity of it that’s making it look weird in motion.

http://img90.imageshack.us/img90/8494/stuff9jp.png

mmh flying “cactuses”

When I tried it, it looked fine. Are you doing it on an LCD screen? I have seen some LCD screens blur motion.

Oh, yeah it’s LCD. I guess I should go try it out for myself if I can find a non LCD in one of the labs here, thanks.

I agree, sounds like you are talking about the persistence of the display, nothing to do with the code or the signal coming out of the graphics card, just physical properties of the screen you are viewing on.