Python Forum
My game's code works but Python still freezes at random intervals.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My game's code works but Python still freezes at random intervals.
#13
I was able to resolve the issue. I moved all sound file loading commands to a single class so that they weren't being loaded every time the sound file is played. I also deleted the line of code that made the main music replay every cycle through the main loop. My game hasn't crashed once since making these adjustments. Thank you all for the help.
nilamo and metulburr like this post
Reply


Messages In This Thread
RE: My game's code works but Python still freezes at random intervals. - by game_slayer_99 - Dec-09-2021, 12:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  From python game in terminal to a website game using bottle Njanez 0 3,887 Aug-13-2021, 01:11 PM
Last Post: Njanez
  Pygame freezes after certain time GJG 2 5,389 May-06-2021, 10:52 AM
Last Post: GJG
  Game “Pong” I have problems with the code BenBach18 2 3,548 Jan-10-2021, 05:16 PM
Last Post: michael1789
  Bringing My Game Code Into Class Format ZQ12 1 2,238 Dec-22-2019, 05:32 AM
Last Post: michael1789

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020