So I have a 2D side-scroller and I’ve notice that the tiles blur slightly (turn a little darker) when the camera scrolls. Is there any little tricks I can use to make it appear less blurry, or is there nothing that can be done except getting better eyes?
Well you need to provide more info like what graphics library you’re using, are you using shaders, is your computer slow etc… No one can help until the basics are taken care of!
Sounds like it’s just the response time of your screen, though without seeing code & hardware spec it’s hard to be sure.
I’m using LibGDX and after some searching I suspect that the double buffering is creating a blink effect because my laptop is slow. The suggested fix was;
[quote]You can save the image to texture and draw it back to screen at the beginning of every frame. This is the preferred solution, although it might require some work. This technique is called “render to texture”.
[/quote]
I’m not sure how to implement this though. Can anyone direct me?
Quite honestly I don’t think that’s your issue. If you’re just using Sprites and the such in LibGDX, there’s really no reason it should blur. Do any other games you play do this?
No they don’t. :-\
Edit: I think it must be the speed I was scrolling. I was scrolling around 200px/second but when I reduced it to 150 it’s harder to notice.
Yeah, that would most likely do it because your refresh rate is 60 FPS right? It would just mess with your eyes.
My FPS stays at around 55-60 but occasionally it drops to 20-40, because my laptop is so bad. :L
The fact my background is so bright mustn’t help either.
Oh, regardless of your refresh rate, that background would really hurt your eyes if you were watching it zoom by! It just tiles together too well I don’t think its a coding problem really, rather its a art style that would make it look like the pixels are blurry!
If you can’t run a 2d game at 60 fps (worse, if you’re dropping to 20-40) you’re doing something wrong with your code, even if you have a bad laptop.
Your background is far too saturated. If you desaturated it a bit it would help