Another reason for poor performance . Your not letting computer idle. If you let it max out cpu. It will cause lag.
clock = pygame.time.Clock() # in main loop delta = clock.tick(60) # best if match monitor refresh rate
99 percent of computer problems exists between chair and keyboard.