@@ -1702,18 +1702,18 @@ void ConsoleGameModeClass::Update_Memory_Log( void )
17021702 const float OOMEGABYTE = 1 .0f / MEGABYTE;
17031703
17041704 StringClass memory_string (2048 );
1705- StringClass working_string (true );
1705+ StringClass temp_string (true );
17061706
17071707 memory_string.Format (" Memory Category Current(Mb) Peak(Mb)\n " );
17081708 int total = 0 ;
17091709 for (int i=0 ; i<WWMemoryLogClass::Get_Category_Count (); i++) {
17101710
17111711 // (gth) to compute Mb should I divide by the nearest power of two to a million?
1712- working_string .Format (" %-18s %-10.2f %-10.2f\r\n " ,
1712+ temp_string .Format (" %-18s %-10.2f %-10.2f\r\n " ,
17131713 WWMemoryLogClass::Get_Category_Name (i),
17141714 (float )WWMemoryLogClass::Get_Current_Allocated_Memory (i) * OOMEGABYTE,
17151715 (float )WWMemoryLogClass::Get_Peak_Allocated_Memory (i) * OOMEGABYTE);
1716- memory_string += working_string ;
1716+ memory_string += temp_string ;
17171717 total += WWMemoryLogClass::Get_Current_Allocated_Memory (i);
17181718 }
17191719
@@ -1724,30 +1724,30 @@ void ConsoleGameModeClass::Update_Memory_Log( void )
17241724 memory_string += working_string;
17251725#endif
17261726
1727- working_string .Format (" SUB TOTAL: %-10.2f\r\n\r\n " ,(float )total * OOMEGABYTE);
1728- memory_string += working_string ;
1727+ temp_string .Format (" SUB TOTAL: %-10.2f\r\n\r\n " ,(float )total * OOMEGABYTE);
1728+ memory_string += temp_string ;
17291729
17301730 // display the estimated space used by textures residing in system ram
17311731 int tex_size=TextureClass::_Get_Total_Texture_Size ();
1732- working_string .Format (" %-18s %-10.2f\r\n " ," Textures(est)" ,(float )tex_size * OOMEGABYTE);
1733- memory_string += working_string ;
1732+ temp_string .Format (" %-18s %-10.2f\r\n " ," Textures(est)" ,(float )tex_size * OOMEGABYTE);
1733+ memory_string += temp_string ;
17341734 total+=tex_size;
17351735
17361736 // display estimated vertex buffer space
17371737 unsigned vb_size=VertexBufferClass::Get_Total_Allocated_Memory ();
1738- working_string .Format (" %-18s %-10.2f\r\n " ," Vertex Buffers(est)" ,(float )vb_size * OOMEGABYTE);
1739- memory_string += working_string ;
1738+ temp_string .Format (" %-18s %-10.2f\r\n " ," Vertex Buffers(est)" ,(float )vb_size * OOMEGABYTE);
1739+ memory_string += temp_string ;
17401740 total+=vb_size;
17411741
17421742 // display estimated index buffer space
17431743 unsigned ib_size=IndexBufferClass::Get_Total_Allocated_Memory ();
1744- working_string .Format (" %-18s %-10.2f\r\n " ," Index Buffers(est)" ,(float )ib_size * OOMEGABYTE);
1745- memory_string += working_string ;
1744+ temp_string .Format (" %-18s %-10.2f\r\n " ," Index Buffers(est)" ,(float )ib_size * OOMEGABYTE);
1745+ memory_string += temp_string ;
17461746 total+=ib_size;
17471747
17481748 // total!
1749- working_string .Format (" TOTAL: %-10.2f\r\n\r\n " ,(float )total * OOMEGABYTE);
1750- memory_string += working_string ;
1749+ temp_string .Format (" TOTAL: %-10.2f\r\n\r\n " ,(float )total * OOMEGABYTE);
1750+ memory_string += temp_string ;
17511751
17521752 StatisticsDisplayManager::Set_Stat ( " memory" , memory_string, 0xffffffff );
17531753}
0 commit comments