Optimize C++ compilation time

This commit is contained in:
Wojtek Figat
2021-04-30 16:27:57 +02:00
parent 05ba9b8d45
commit 0e75dba142
222 changed files with 1095 additions and 1506 deletions

View File

@@ -96,14 +96,7 @@ public:
/// <summary>
/// Determines whether this lightmap is ready (textures can be used by the renderer).
/// </summary>
/// <returns>True if lightmap textures are ready to use by renderer, otherwise false.</returns>
FORCE_INLINE bool IsReady() const
{
// TODO: link for events and cache this to be a boolean value
return _textures[0] && _textures[0]->GetTexture()->ResidentMipLevels() > 0
&& _textures[1] && _textures[1]->GetTexture()->ResidentMipLevels() > 0
&& _textures[2] && _textures[2]->GetTexture()->ResidentMipLevels() > 0;
}
bool IsReady() const;
private: