Hi. I'm working on a new VN and I really want to give the user some kind of audio feedback when the characters are speaking (IE bleeps). I know it's not really common practice to do so, but I think it can be used to great effect depending on the game.
Anyways, I have a sound layer that plays a short sound effect on loop every time a character's callback is set off. However, every time the sound is loaded, the game pauses for a moment, which messes up the animations. Even when it's not a loop, the pause is noticeable enough to ruin some of the UI animations I have set up.
Is there any way to decrease the slowdown that occurs when Renpy is loading a sound effect?
Game slows down when sound plays?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Newbie
- Posts: 11
- Joined: Wed Apr 26, 2017 5:36 pm
- Contact:
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Game slows down when sound plays?
Are you on the latest Ren'Py? There was an issue with this a while back, but it should be fixed now.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Newbie
- Posts: 11
- Joined: Wed Apr 26, 2017 5:36 pm
- Contact:
Re: Game slows down when sound plays?
It still runs slowly. I tried the nightly build too and the problem is the same. I feel like it has to do with the fact that it's trying to load the file over and over again.PyTom wrote:Are you on the latest Ren'Py? There was an issue with this a while back, but it should be fixed now.
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Game slows down when sound plays?
Can you put together a demo so I can see what's blocking?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Newbie
- Posts: 11
- Joined: Wed Apr 26, 2017 5:36 pm
- Contact:
Re: Game slows down when sound plays?
Yeah, here is a link for the current version: https://1drv.ms/u/s!AlaMjgDPsW1O4V0JkebU-_uw4-7rPyTom wrote:Can you put together a demo so I can see what's blocking?
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Game slows down when sound plays?
I'm tracking this at https://github.com/renpy/renpy/issues/1174 , for the record.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot], snotwurm