fix #4819
improves rendering speed of complex rubberbands