mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use short ptr for find zone grouping data.
Overall, the short ptr changes have the following effect on memory usage: big 9007 MB -> 8670 MB (96%) chicken 2007 MB -> 1932 MB (96%) drl-l-b 1383 MB -> 1304 MB (94%) q3bsp-mt 5252 MB -> 5059 MB (96%) long 5152 MB -> 4799 MB (93%) fi-big 4141 MB -> 4000 MB (96%)
This commit is contained in:
@@ -8915,7 +8915,7 @@ void View::DrawFindZone()
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void View::DrawZoneList( const Vector<ZoneEvent*>& zones )
|
||||
void View::DrawZoneList( const Vector<short_ptr<ZoneEvent>>& zones )
|
||||
{
|
||||
ImGui::Columns( 3 );
|
||||
ImGui::Separator();
|
||||
@@ -8929,8 +8929,8 @@ void View::DrawZoneList( const Vector<ZoneEvent*>& zones )
|
||||
ImGui::NextColumn();
|
||||
ImGui::Separator();
|
||||
|
||||
const Vector<ZoneEvent*>* zonesToIterate = &zones;
|
||||
Vector<ZoneEvent*> sortedZones;
|
||||
const Vector<short_ptr<ZoneEvent>>* zonesToIterate = &zones;
|
||||
Vector<short_ptr<ZoneEvent>> sortedZones;
|
||||
|
||||
if( m_findZone.tableSortBy != FindZone::TableSortBy::Starttime )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user