Lag when win.blit() background pygame
问题 I'm having trouble with the framerate in my game. I've set it to 60 but it only goes to ~25fps. This was not an issue before displaying the background (was fine with only win.fill(WHITE) ). Here is enough of the code to reproduce: import os, pygame os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (50, 50) pygame.init() bg = pygame.image.load('images/bg.jpg') FPS = pygame.time.Clock() fps = 60 WHITE = (255, 255, 255) BLUE = (0, 0, 255) winW = 1227 winH = 700 win = pygame.display.set_mode((winW,