git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add MinGW Win32 Cross Compiling
[ipdf/code.git]
/
src
/
debugscript.cpp
diff --git
a/src/debugscript.cpp
b/src/debugscript.cpp
index
7ca6d98
..
9fd95a6
100644
(file)
--- a/
src/debugscript.cpp
+++ b/
src/debugscript.cpp
@@
-240,12
+240,14
@@
void DebugScript::PrintPerformance(View * view, Screen * scr)
now.view_bounds = view->GetBounds();
// object_count clock delta_clock x Log10(x) y Log10(y) w Log10(w) Size(w)
now.view_bounds = view->GetBounds();
// object_count clock delta_clock x Log10(x) y Log10(y) w Log10(w) Size(w)
- printf("%d\t%lu\t%lu\t%s\t%f\t%s\t%f\t%s\t%f\t%lu\n",
+ #ifdef QUADTREE_DISABLED
+ printf("%d\t%llu\t%llu\t%s\t%f\t%s\t%f\t%s\t%f\t%u\n",
now.object_count, (uint64_t)now.clock,
(uint64_t)(now.clock - m_perf_last.clock),
now.object_count, (uint64_t)now.clock,
(uint64_t)(now.clock - m_perf_last.clock),
- Str(now.view_bounds.x).c_str(), Log10(
now.view_bounds.x
),
- Str(now.view_bounds.y).c_str(), Log10(
now.view_bounds.y
),
+ Str(now.view_bounds.x).c_str(), Log10(
Abs(now.view_bounds.x)
),
+ Str(now.view_bounds.y).c_str(), Log10(
Abs(now.view_bounds.y)
),
Str(now.view_bounds.w).c_str(), Log10(now.view_bounds.w),
Size(now.view_bounds.w));
Str(now.view_bounds.w).c_str(), Log10(now.view_bounds.w),
Size(now.view_bounds.w));
+ #endif
m_perf_last = now;
}
m_perf_last = now;
}
UCC
git Repository :: git.ucc.asn.au