1st u have to determine what is cause. Game or windows.
If its game, it can be only on specific server, settings, patch... ?
40 fps is kinda low for FPS games, try disabling v-sync, Antialiasing...
if it is windows... it can be... huh what cant be? :P
while i am playing PES2012, when song changes on youtube, i get lag for 10sec, but not in World of tanks...