Antivirus programs work in such a way as to know when you're not gaming or using your computer and can 'silently' run a scan to clean up your PC while your PC is running but idle or not in use. This way the AV program does not interfere with and slow down your gaming or workflow which leaves your device in a state that ensures optimal speed/performance while you play or work.