reduce cpu load when change padding in square