Nov-25-2021, 11:08 PM
(This post was last modified: Nov-26-2021, 01:00 AM by game_slayer_99.)
"This is "a" bottleneck, but maybe not "the" bottleneck. You are loading the wav files every single time you play them instead of saving it as an object. Every single time the ball hits the wall it has to load the file. One of these times it may fail. If not it is still bottlenecking your code."
That may explain why the game consistently crashes only immediately after impacting either a wall or one of the paddles. I'll test it out.
Edit: I removed the sound files entirely and have yet to experience a game crash. I feel confident at the moment that this was at the very least a major contributing issue.
That may explain why the game consistently crashes only immediately after impacting either a wall or one of the paddles. I'll test it out.
Edit: I removed the sound files entirely and have yet to experience a game crash. I feel confident at the moment that this was at the very least a major contributing issue.