(this might not be it but might be worth trying)
when the game is not in focus the source engine reduces its fps/usage so that you can do whatever outside of the game. This is an issue for producers cause we often have to alt tab out, so to fix it we use the command
engine_no_focus_sleep 0Hope this helps.