Jump to content

more console spam


Bloodknight

Recommended Posts

So, I'm trying to rid torque of all its toxic red and blue console messages, its probably a personal thing but it bugs me ok...


and this stuff is relatively new


https://github.com/GarageGames/Torque3D/blob/development/Engine/source/gfx/gfxTextureManager.cpp#L250-L261


its also spamming the console to all hell in places and I'm not sure I understand why or how; my first and only guess is that its a mechanism for finding duplicated image files (I haven't really explored in detail yet) I'm just wondering if the original author can enhance my knowledge on the subject

Link to comment
Share on other sites

Oh i wrote that for az to show when a cached texture was getting reloaded again, tbh it wasn't really intended for the main repo but i didn't make that part very clear when i was helping him and well now it's in the main repo :mrgreen: , i more meant it as just a local diagnostic tool . Long story short, they had a case were an artist accidentally placed a composite texture as a diffuse texture in another material, so the same texture was getting loaded with different texture profiles and causing it to be constantly reloaded, the materials in question were used ALOT and actually caused the system to eat up all the ram and slow down to a crawl and eventually crash.


If you see it spamming the console, more than likely something wrong with a material in script land or some c++ code engine side is possibly using the wrong(different) texture profile and causing the texture to be loaded again.

Link to comment
Share on other sites

Here's the output from the outpost mission in the stock template, chasing these down just because I don't like big blocks of ugly in the default, as it hides the errors I make.


Also as a side note, this one spams out in release as well as debug.

 

Line 505: GFXTextureManager::_lookupTexture: Cached texture art/gui/Torque-3D-logo has a different profile flag
Line 506: GFXTextureManager::_lookupTexture: Cached texture art/gui/Torque-3D-logo has a different profile flag
Line 507: GFXTextureManager::_lookupTexture: Cached texture art/gui/no-preview has a different profile flag
Line 508: GFXTextureManager::_lookupTexture: Cached texture art/gui/no-preview has a different profile flag
Line 509: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 510: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 511: GFXTextureManager::_lookupTexture: Cached texture levels/Outpost_preview has a different profile flag
Line 512: GFXTextureManager::_lookupTexture: Cached texture levels/Outpost_preview has a different profile flag
Line 1070: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Ryder/TP_Ryder_D has a different profile flag
Line 1071: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Ryder/TP_Ryder_D has a different profile flag
Line 1072: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1073: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1074: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1075: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1076: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1077: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1078: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1079: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1080: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1081: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1106: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Ryder/TP_Ryder_D has a different profile flag
Line 1107: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Ryder/TP_Ryder_D has a different profile flag
Line 1108: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Ryder/TP_Ryder_D has a different profile flag
Line 1109: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Ryder/TP_Ryder_D has a different profile flag
Line 1110: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1111: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1112: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1113: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1114: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1115: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1116: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1117: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1118: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1119: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1120: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1121: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1142: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1143: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1144: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1145: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1146: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1147: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1148: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1149: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1150: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1151: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1152: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1153: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1154: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1155: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1156: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1157: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1158: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1159: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1160: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1161: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1162: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1163: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1164: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1165: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1166: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1167: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1168: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1169: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1170: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1171: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1172: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1173: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1174: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1175: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1176: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1177: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1178: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1179: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1180: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1181: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1182: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1183: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1184: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1185: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1186: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1187: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1188: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1189: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1190: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1191: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1192: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1193: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1194: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1195: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1196: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1197: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1198: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1199: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1200: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1201: GFXTextureManager::_lookupTexture: Cached texture art/shapes/weapons/Turret/Turret_D has a different profile flag
Line 1225: GFXTextureManager::_lookupTexture: Cached texture tools/worldEditor/images/lockedHandle has a different profile flag
Line 1229: GFXTextureManager::_lookupTexture: Cached texture tools/worldEditor/images/lockedHandle has a different profile flag
Line 1275: GFXTextureManager::_lookupTexture: Cached texture levels/Outpost_preview has a different profile flag
Line 1276: GFXTextureManager::_lookupTexture: Cached texture levels/Outpost_preview has a different profile flag
Line 1280: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 1281: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 1318: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 1319: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 1323: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 1324: GFXTextureManager::_lookupTexture: Cached texture levels/Empty Room_preview has a different profile flag
Line 2017: GFXTextureManager::_lookupTexture: Cached texture tools/materialEditor/gui/cubemapBtnBorder_n has a different profile flag
Line 2018: GFXTextureManager::_lookupTexture: Cached texture tools/materialEditor/gui/cubemapBtnBorder_n has a different profile flag
Line 2020: GFXTextureManager::_lookupTexture: Cached texture core/art/white has a different profile flag
Line 2021: GFXTextureManager::_lookupTexture: Cached texture core/art/white has a different profile flag
Line 2022: GFXTextureManager::_lookupTexture: Cached texture core/art/white has a different profile flag
Line 2023: GFXTextureManager::_lookupTexture: Cached texture core/art/white has a different profile flag
Line 2031: GFXTextureManager::_lookupTexture: Cached texture art/particles/impact has a different profile flag
Line 2032: GFXTextureManager::_lookupTexture: Cached texture art/particles/impact has a different profile flag
Line 2033: GFXTextureManager::_lookupTexture: Cached texture tools/materialEditor/gui/cubemapBtnBorder_n has a different profile flag
Line 2034: GFXTextureManager::_lookupTexture: Cached texture tools/materialEditor/gui/cubemapBtnBorder_n has a different profile flag

Link to comment
Share on other sites

Oh that specular bug has come about because of the upcoming pbr stuff, spec maps are out and that texture slot is replaced with a material info texture that is made up of metalness,roughness & ao so it's not a color texture like the old specular maps. That is how that one snuck in ;)


As ya can see more often that not the code does pick up bugs in either c++ or script side material definitions, maybe it would be better if the code was wrapped in a TORQUE_CHECK_TEXTURE_PROFILES macro (or some name like this) and you just compile it in every now and than to check.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...