File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -487,6 +487,11 @@ void W3DFileSystem::reprioritizeTexturesBySize()
487487}
488488
489489// -------------------------------------------------------------------------------------------------
490+ // This function moves the largest texture of its name to the front of the directory info.
491+ // The algorithm only prioritizes the first item in the multimap, because this is what we currently
492+ // need:
493+ // Before: A(256kb) B(128kb) C(512kb)
494+ // After: C(512kb) B(128kb) A(256kb)
490495// -------------------------------------------------------------------------------------------------
491496void W3DFileSystem::reprioritizeTexturesBySize (ArchivedDirectoryInfo& dirInfo)
492497{
@@ -500,7 +505,6 @@ void W3DFileSystem::reprioritizeTexturesBySize(ArchivedDirectoryInfo& dirInfo)
500505 ++it1;
501506 }
502507
503- // This algorithm only prioritizes the first item in the multimap.
504508 for (; it1 != end; ++it1)
505509 {
506510 const AsciiString& file0 = it0->first ;
You can’t perform that action at this time.
0 commit comments