Update text boxes each tick only if at least one of them is attached to atom / obstacle

[#59413454]