So, I've been working on a simple tile engine for a 2D platformer today. There's an odd issue I keep having.
Essentially my program renders a subsection of a spritesheet as a texture for each tile, by putting them into sprites and then iterating over a collection of sprites. I then move around the map using sf::View.
However, at no regular interval but frequent enough I have this happen:
http://imgur.com/K8vPPZdThis is a screenshot with setSmooth enabled for the tileTexture to show what I mean (I understand these artifacts with this enabled - some blurring between tiles of the spritesheet would be inevitable) -- but the problem is that it happens without it.
My view is the same size as the screen resolution, but centered on the ball sprite.
I'm assuming I can get around this by using a RenderTexture to draw the level into memory, and redrawing that as a single texture/sprite every frame, but it seems strange as to why this is happening.
It just crops up for a single frame, and then disappears.
Any help would be greatly appreciated.