Open AndersMalmgren opened 4 years ago
if (AceFile.name != last_AceFile)
{
InitAcoustics();
}
AceFile.name allocates
Havent tested it thoroughly, but changing last_AceFile from a string to a TextAsset and compare against that instead seems to work. I tested to change file in editor and it re inited accoustics
if (AceFile != last_AceFile)
{
InitAcoustics();
}
Hi @AndersMalmgren, first, thanks for the report. I just wanted to follow up. Did this change fix the allocation issue for you, or do you need further assistance from us?
It fixes it, haven't tested enough to ensure proper execution. But it seems to hold
edit: what I meant is you need some regression testing.
Hey guys. Our game is VR and its important it allocates zero bytes per frame. The only offender right now is project acoustics at 80 bytes per frame