Improved animation performance by switching perspective projection off when not needed