summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-05-08 11:16:51 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-05-08 11:16:51 -0400
commit940adfe4d02ab0ecf69635afe7f959abe1fe2c44 (patch)
tree59fa63e34504193c1230bfd47cfc38deb2594bff /indra/newview
parentfde0868231a25b8c9ce03a86cb53f1738d35688d (diff)
WIP bvh diagnostics
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/app_settings/logcontrol.xml1
-rwxr-xr-xindra/newview/llfloaterbvhpreview.cpp8
2 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/app_settings/logcontrol.xml b/indra/newview/app_settings/logcontrol.xml
index de3732f339..6d5cf6e8f7 100755
--- a/indra/newview/app_settings/logcontrol.xml
+++ b/indra/newview/app_settings/logcontrol.xml
@@ -42,6 +42,7 @@
</array>
<key>tags</key>
<array>
+ <string>BVH</string>
<!-- sample entry for debugging specific items
<string>Avatar</string>
<string>Inventory</string>
diff --git a/indra/newview/llfloaterbvhpreview.cpp b/indra/newview/llfloaterbvhpreview.cpp
index 669ffa7c59..66c433684b 100755
--- a/indra/newview/llfloaterbvhpreview.cpp
+++ b/indra/newview/llfloaterbvhpreview.cpp
@@ -280,9 +280,17 @@ BOOL LLFloaterBvhPreview::postBuild()
LLDataPackerBinaryBuffer dp(buffer, buffer_size);
// pass animation data through memory buffer
+ LL_INFOS("BVH") << "Serializing loaderp" << LL_ENDL;
loaderp->serialize(dp);
dp.reset();
+ LL_INFOS("BVH") << "Deserializing motionp" << LL_ENDL;
BOOL success = motionp && motionp->deserialize(dp);
+ LL_INFOS("BVH") << "TEST: Serializing motionp" << LL_ENDL;
+ S32 test_file_size = motionp->getFileSize();
+ U8* test_buffer = new U8[test_file_size];
+ LLDataPackerBinaryBuffer test_dp(test_buffer, test_file_size);
+ motionp->serialize(test_dp);
+ LL_INFOS("BVH") << "Done" << LL_ENDL;
delete []buffer;