Fix performance issues with NVIDIA drivers.