Skip to content

Commit c199d7f

Browse files
committed
Improve comment of reprioritizeTexturesBySize
1 parent 249e05a commit c199d7f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DFileSystem.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
//-------------------------------------------------------------------------------------------------
491496
void 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;

0 commit comments

Comments
 (0)