mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-01-22 08:21:48 +00:00
simplified R_ImageList_f
This commit is contained in:
parent
33a2c4ad6e
commit
3c8cb0f592
1 changed files with 1 additions and 9 deletions
|
@ -120,17 +120,9 @@ void R_ImageList_f( void )
|
||||||
ri.Printf( PRINT_ALL, " %s\n", image->name );
|
ri.Printf( PRINT_ALL, " %s\n", image->name );
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* units[] = { "KB", "MB", "GB", "TB" };
|
|
||||||
int amount = totalByteCount >> 10;
|
|
||||||
int unit = 0;
|
|
||||||
while ( amount >= 1024 ) {
|
|
||||||
amount >>= 10;
|
|
||||||
++unit;
|
|
||||||
}
|
|
||||||
|
|
||||||
ri.Printf( PRINT_ALL, "---------\n" );
|
ri.Printf( PRINT_ALL, "---------\n" );
|
||||||
ri.Printf( PRINT_ALL, "%i images found\n", imageCount );
|
ri.Printf( PRINT_ALL, "%i images found\n", imageCount );
|
||||||
ri.Printf( PRINT_ALL, "Estimated VRAM use: %i %s\n\n", amount, units[unit] );
|
ri.Printf( PRINT_ALL, "Estimated VRAM use: %s\n\n", Com_FormatBytes( totalByteCount ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue