minor stability fix's

created a distance buffer for render refreshing.
made dimension location conformation checks more reliable.