replace "c_trace(TextPos,camera.x,IGNORE_ME|IGNORE_PASSABLE)==0" with "!my.clipped"

works way faster, and should omit the text if the entity is behind walls or other entites. If it doesn't work, then maybe clipped only checks whether the entity is out of the clip range.