Python : Pygame.mixer.Sound() slows down the game -


i'm working on breakout game project in when load .ogg file there's problem fps guess , slows down paddle's , ball's speed. if change clock.tick more 120 problem remains same. ideas why , how fix it?

pygame.mixer.pre_init(18432, -16, 2, 4096) pygame.init() if state == state_playing :             sound = pygame.mixer.sound('intro.ogg').play(-1) 


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -