ID:2925481
 
Applies to:Dream Daemon
Status: Open

Issue hasn't been assigned a status value.
It would be very useful if we had the ability to turn off saving dynamically generated files to the dyn.rsc

This is primarily because when you send a lot of these dynamically generated files to a client, i.e. sounds, it can result in an accumulation of a lot of these files which slows the server down and clogs up server storage space.

The dynamic rsc is not really needed in our codebase as most of the dynamically generated sound files we are sending are throwaway sound files that do not need to be cached since they won't ever be played again.

To be more specific, we have a text-to-speech feature that generates dynamic audio clips from what players say into sound files. The feature works very nicely and we haven't really had the need to use the dynamic rsc, but the files get added onto the dynamic rsc and it results in the rsc becoming absurdly huge for a bunch of files we clear out frequently. We also cannot delete the dynamic rsc because it's locked up by the dream daemon process so we're stuck with an ever-accumulating dynamic rsc that serves us no purpose but to slow the server down and clog up storage space.

The implementation doesn't necessarily matter here, we just really need a way to prevent a file from getting stored to the dynamic rsc, a way to mark assets as temporary or one-use so that the engine does not need to bother caching it for later use.
Does setting world.cache_lifespan = 0 still increase that file?
For the current session, yeah.
I'm pretty sure it's still causing an invisible performance bottleneck whenever we try to send new TTS sounds to a client

In an average round, we might be sending upwards of 80K or so TTS messages.
I'd imagine this adds up like crazy if dyn.rsc is doing a hash lookup over an array/linked list