From a603f100c87d7d7fd1c0a1b62cb463c1602f37ee Mon Sep 17 00:00:00 2001 From: ponchio Date: Thu, 14 Apr 2005 16:19:34 +0000 Subject: [PATCH] adding disk_tri --- apps/nexus/preload.cpp | 7 ++++++- apps/nexus/preload.h | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/nexus/preload.cpp b/apps/nexus/preload.cpp index 5384ee92..1dbea185 100644 --- a/apps/nexus/preload.cpp +++ b/apps/nexus/preload.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2005/02/17 15:39:44 ponchio +Reorderes statistics a bit. + Revision 1.6 2005/02/08 12:43:03 ponchio Added copyright @@ -59,8 +62,10 @@ using namespace nxs; //we cannot flush since we are not in the openGL thread //and flushing includes VBO buffer flushing also. Entry &entry = (*mt)[item.id]; - if(!entry.patch) + if(!entry.patch) { disk += entry.disk_size; + disk_tri += entry.nvert * 2; + } Patch &patch = mt->GetPatch(item.id, item.error, false); diff --git a/apps/nexus/preload.h b/apps/nexus/preload.h index edf6ed67..34c7a406 100644 --- a/apps/nexus/preload.h +++ b/apps/nexus/preload.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.5 2005/02/17 15:39:44 ponchio +Reorderes statistics a bit. + Revision 1.4 2005/02/08 12:43:03 ponchio Added copyright @@ -55,7 +58,8 @@ class Preload: public pt::thread{ std::vector queue; - unsigned int disk; //kbytes readed from disk + unsigned int disk; //kbytes readed from disk + unsigned int disk_tri; //number of triangles readed from disk unsigned int total_disk; Preload(): thread(false), trigger(false, false) {} ~Preload() {