Remove audio after played

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dhishii
Posts: 16
Joined: Fri Dec 20, 2019 4:00 am

Remove audio after played

Post by dhishii »

Hi Tony,

I set up subtitles with 160 audio files (set to streaming/vorbis and compressed to about 4kb each) and the scene starts out stable, but the FPS gradually decreases as the audio clip count increases, and by the end of the conversation, the fps drops to ~20.

Do you know if there is a way to clear the audio file after it plays? Or is there another way to improve performance?

Thanks!

Before
Image
After
Image
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Remove audio after played

Post by Tony Li »

Hi,

Inspect your audio clips and change their Load Type to Streaming and Compression Type to PCM. Otherwise they'll stay in memory even after they're used. And if they were set to Decompress On Load, they'll be using the max amount of memory possible.
Post Reply