Optimised game-loading, by not reading terrain textures or calculating bounding boxes when not necessary; maps load about twenty seconds faster (at least in Debug mode). Also fixed possible minor bug (FLT_MIN vs -FLT_MAX) and other trivial things.

This was SVN commit r1917.
This commit is contained in:
Ykkrosh committed 2005-02-09 23:19:48 +00:00
1 parent 614e523c89
commit 3b1395d80b
14 files changed
+175 -154

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ void CModelRData::Build()
// build data
BuildVertices();
BuildIndices();
// force a texture load on models texture
// force a texture load on model's texture
g_Renderer.LoadTexture(m_Model->GetTexture(),GL_CLAMP_TO_EDGE);
// setup model render flags
/*if (g_Renderer.IsTextureTransparent(m_Model->GetTexture())) {