Revert "fixed performance on window resizing"

This reverts commit bd3c2e150f30ced5a26c33aff27d7a1c10f70839.