enable hardwareAcceleration