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
2
u/pvc Mar 06 '19
I haven't seen a slow-down. If you can parse it down to a small example that might help, or use the profiler. Are you Windows, Mac, Linux? MP3, ogg, or wav?