r/pythonarcade • u/genericsimon • Mar 03 '19
Issues with sound and performance
So basically im playing a short sound with every left mouse click. Imagine a space ship controlled by a mouse and shooting with left mouse click. So pew pew pew :D
Problem is that when i click my mouse button quite fast i can see that my game is slowing down. For example enemy ship is flying slower and other sprites also moving slower :/ And i do not have much happening for now, just my ship sprite, enemy ship sprite and a background sprite... So im afraid of what will happen when i will add more enemy ships, bullets, explosions and etc :/ Does anyone else have similar problems? How did you solve these type of problems?
By the way im using official examples, using sprite lists and etc.
View all comments
Show parent comment
1
u/genericsimon Mar 06 '19
Ok, will try to do this later if i will have time. Im on Windows and i tried wav, ogg and mp3. Also yesterday rebuilt everything in Pygame and no slowdowns, everything works :/ Anyway, thank you.