Re: Getting started in python game development

I have faced the same problem using Pygame and Pygame.mixer.
You can fix it by putting this line, before the pygame.init() call:
pygame.mixer.pre_init(44100, -16, 2, 1024)

This will decrease the buffer size that pygame allocates for each sound and will fix the lag.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Amit via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : thggamer via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Amit via Audiogames-reflector

Reply via email to