Game Development Community

Tearing when camera moves horizontally

by Alex Loret de Mola · in Torque X 2D · 10/17/2010 (1:54 am) · 2 replies

So we've been working with 3.1.5, and we were putting off what we thought was a major issue, and now we have no real choice but to address it.

We have the camera attached to our player character, and whenever the camera moves horizontally any sprites on the screen experience tearing. This happens even if there's only a single sprite on the screen, but it does admittedly happen more if there's more sprites.

We pulled out everything to see if it was the problem: we changed the game's resolution, had the sprite rendering without any stretching or shrinking, took out all components attached to all of the game objects, took out all materials other than the player character's material and the "reference" sprite material... none of these seemed to fix the issue.

We started wondering whether it was a problem with Torque in general, so Jesse loaded up the platformer demo and tried it: we didn't realize it at the time, but even the platformer demo experiences severe tearing when moving horizontally.

Does anyone else experience this? How did you get around it? Were you even able to? I'm at a loss for where to go on this, short of trying to tear apart the renderer and make it work more efficiently (if I can even realistically do that... or heck, if that's even really the problem).

I should note that this happens on both the XBox and all of the PCs we have, both for the platformer demo and for our game (even the version where we stripped out everything but the player and a single other motionless sprite).

About the author

Hi! I'm Alex Loret de Mola, AKA Vendal Thornheart, of Medaverse Studios. We're trying out tech for our new game, and Torque X's rapid prototyping has caught our eye! I finally got off my butt and got a license! =)


#1
10/17/2010 (4:35 am)
did you try enabling
<SynchronizeWithVerticalRetrace>true</SynchronizeWithVerticalRetrace>
in your torqueSettings.xml or through code?
#2
10/17/2010 (4:53 am)
Oh! I didn't realize such a setting existed! I'll try that out when I'm next in the office! I was banging my head against the wall all day today, ripping things out of the game to see if it was causing it... and when I saw that even the included demo was doing it, my head was ready to explode. =)