I saw that when you wanna blit a .png image to your pygame display, the FPS drop from 60 to 20, is there a way to get around this, or maybe I did something wrong in my code ?
EDIT : I just tried .convert_alpha(), and it's going around 40 FPS now
menu = pygame.image.load("Ecran titre\\principal\\menu.png")
clock = pygame.time.Clock()
gameExit = False
while not gameExit :
for event in pygame.event.get():
if (event.type == pygame.QUIT):
gameExit = True
#gameDisplay.fill(0)
gameDisplay.blit(background,(0,0)) # background is a jpeg image with .convert()
gameDisplay.blit(menu,(0,0))
pygame.display.update()
clock.tick(60)
pygame.display.set_caption("fps: " + str(clock.get_fps()))