Request Feature: ResourceGroup
Hello stickymango, I would like to request feature: User code can define the resource group in creating sound. Because my application has thousands of resource available, and if the resource group is defined in run time, the performance loss is very big. So if the resource group is defined then OgreOgg not looking for it anyomre, but if it doesn't then OgreOgg will try to look for it.
In my local version, I have changed the code to match that problem, but OgreOgg is still updating, so I would love to have that feature in official version too
Thank you for your help!
Are you asking for a resource group name to be set which OgreOggSound will only look to when searching for sounds? I know when you create a sound it asks OGRE's ResourceGroupManager for the ResourceGroup containing the sound file, is this a bottleneck in your app?
If so, I don't see why not
Yup that is exactly what I needed. The bottle neck is at the looking for resource group. Thank you very much sticky mango for your help.
I've committed a fix for this, can you test it out to see if sorts out the problem?
use OgreOggSoundManager::setResourceGroupName() / OgreOggSoundManager::getResourceGroupName() to modify the value.
It's called setResourceGroupName for the getter function. typo.
I can't call setResourceGroupName, because my app just crashes on that one.
Without it everything works fine. I'm at a loss. It's a simple variable assignment, and yet it crashes. Linux here.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f546edc67e0 (LWP 26093)]
0x00007f546d71d7d6 in std::string::assign () from /usr/lib64/libstdc++.so.6
#0 0x00007f546d71d7d6 in std::string::assign ()
#1 0x0000000000448074 in OgreOggSound::OgreOggSoundManager::setResourceGroupName (this=0x7f5466d82068, group=@0x7fff2aa6bf50)
Looks like it fails to assign a string. LOL. I reaaaly wonder what it is.
Ah yes, thanks for spotting the typo, I assume you changed that but still get the error?
Yeah. Google told me such errors appeared when plugins were compiled for one Ogre version, and Ogre itself was another one. But that's not the case for me.
I had thought about the function being inline, but moving that to the .cpp didn't help.
Yeah, I would have said it was a mis-match somewhere but I don't know where, it works fine on my windows machines..
I'm recompiling Ogre. And will also try to build it under MinGW and check OgreOggSound there too.
Unfortunately, I cannot compile it under MinGW, because default CMakeLists.txt depends on pkg-config not available on MinGW.
Lol, the CMakeLists.txt is for building on linux only.
I'll try and make time to read up on CMake and get some multiplatform scripts available.