reorder vertex data collectors

This commit is contained in:
David Rose 2007-06-27 17:39:10 +00:00
parent 4190c60ba7
commit 68772fbb9e
2 changed files with 11 additions and 5 deletions

View File

@ -1061,7 +1061,10 @@ deactivate_hook(Thread *thread) {
int on_bit = ithread->_active_collectors.get_lowest_on_bit();
while (off_bit != on_bit) {
off_bit = ithread->_active_collectors.get_next_higher_different_bit(on_bit);
nassertv(off_bit != on_bit);
nassertd(off_bit != on_bit) {
cerr << "Oops! off_bit = " << off_bit
<< ", collectors = " << ithread->_active_collectors << "\n";
}
while (on_bit < off_bit) {
// Here's an active collector. Record a data point indicating
// it stops here.
@ -1098,7 +1101,10 @@ activate_hook(Thread *thread) {
int on_bit = ithread->_active_collectors.get_lowest_on_bit();
while (off_bit != on_bit) {
off_bit = ithread->_active_collectors.get_next_higher_different_bit(on_bit);
nassertv(off_bit != on_bit);
nassertd(off_bit != on_bit) {
cerr << "Oops! off_bit = " << off_bit
<< ", collectors = " << ithread->_active_collectors << "\n";
}
while (on_bit < off_bit) {
// Here's an active collector. Record a data point indicating
// it resumes here.

View File

@ -201,14 +201,14 @@ static LevelCollectorProperties level_properties[] = {
{ 1, "Main memory:NeverFree", { 0.2, 0.5, 0.8 } },
{ 1, "Main memory:Interpreter", { 0.8, 0.2, 0.5 } },
{ 1, "Vertex Data", { 1.0, 0.4, 0.0 }, "MB", 64, 1048576 },
{ 1, "Vertex Data:Small", { 0.2, 0.3, 0.4 } },
{ 1, "Vertex Data:Independent", { 0.9, 0.1, 0.9 } },
{ 1, "Vertex Data:Small", { 0.2, 0.3, 0.4 } },
{ 1, "Vertex Data:Pending", { 0.6, 0.8, 1.0 } },
{ 1, "Vertex Data:Resident", { 0.9, 1.0, 0.7 } },
{ 1, "Vertex Data:Compressed", { 0.5, 0.1, 0.4 } },
{ 1, "Vertex Data:Disk", { 0.6, 0.9, 0.1 } },
{ 1, "Vertex Data:Disk:Unused", { 0.8, 0.4, 0.5 } },
{ 1, "Vertex Data:Disk:Used", { 0.2, 0.1, 0.6 } },
{ 1, "Vertex Data:Compressed", { 0.5, 0.1, 0.4 } },
{ 1, "Vertex Data:Resident", { 0.9, 1.0, 0.7 } },
{ 1, "TransformStates", { 1.0, 0.5, 0.5 }, "", 5000 },
{ 1, "TransformStates:On nodes", { 0.2, 0.8, 1.0 } },
{ 1, "TransformStates:Cached", { 1.0, 0.0, 0.2 } },