when I move around the scene it starts loading them and it freezes during this.
I have hundreds of objects, but I'm not exactly sure which one is causing issues, so I'm trying to trace it down.
If I remove all materials - everything works fine, so it's not mesh related.
In the log output I get this warning when the hiccup occurs:
Code: Select all
WARNING: Texture instance 'HlmsTextureManager/15' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
so if I understand it correctly - that name is a 'alias', I then try and get the texture like below, but it always returns 'NULL'.
So I'm a bit unsure if I'm using it the correct way.
Code: Select all
Ogre::IdString tmpId;
tmpId = 15;
Ogre::HlmsManager *const hlmsManager = GetOgreRoot()->getHlmsManager();
Ogre::HlmsTextureManager *const hlmsTextureManager = hlmsManager->getTextureManager();
const Ogre::String* texname = hlmsTextureManager->findResourceNameFromAlias(tmpId);
if (texname != NULL)
{
PrintOgreLog("" + Utilities::ToString(texname), Ogre::LML_CRITICAL);
}else
{
PrintOgreLog("Could not find texture by alias", Ogre::LML_CRITICAL);
}