Unity-Runtime-Animation-Recorder icon indicating copy to clipboard operation
Unity-Runtime-Animation-Recorder copied to clipboard

Huge files, long saves

Open TheCarelessWhisper opened this issue 5 years ago • 6 comments

So I'm trying to use this to clean up motion capture but 3 minutes alone is taking hours (at time of writing 26 minutes) to save. I want to use this for maybe 26 minute takes and edit it. Is there anything to do to fix this? So far this is the only solution that works exactly how we need. We're willing to help fund a solution if needed as well, but any help is super appreciated. To make it clear. We're using motion capture and facial capture in play mode and saving the results.

TheCarelessWhisper avatar Apr 25 '19 21:04 TheCarelessWhisper

currently run in the same problem. My approach is to limit bones and reduce frame rate. If somebody has a better idea, please tell me.

Schaggo avatar Sep 03 '19 17:09 Schaggo

@Schaggo try remove clip.EnsureQuaternionContinuity (at line 185) in the UnityAnimationRecorder.cs https://github.com/newyellow/Unity-Runtime-Animation-Recorder/blob/master/Unity%20Runtime%20Recorder/Scripts/UnityAnimSaver/UnityAnimationRecorder.cs

newyellow avatar Sep 03 '19 18:09 newyellow

Thanks for the quick reply! I deleted all unneeded properties of the animation and removed clip.EnsureQuaternionContinuity (at line 185). Im am still clocking in at about 2.6MB per second (60fps). Any tip how to reduce further?

Schaggo avatar Sep 04 '19 09:09 Schaggo

To Answer my own question, I found altered scripts that checks for changes of properties before writing a frame. Reduces the animation to about 1.2MB/s.

https://github.com/WhiteNoise/UnityViveTrackerExample

Getting there...

Schaggo avatar Sep 04 '19 11:09 Schaggo

@Schaggo try remove clip.EnsureQuaternionContinuity (at line 185) in the UnityAnimationRecorder.cs https://github.com/newyellow/Unity-Runtime-Animation-Recorder/blob/master/Unity%20Runtime%20Recorder/Scripts/UnityAnimSaver/UnityAnimationRecorder.cs

is there any chance I could talk about hiring you to make some changes to this, to better suit my needs?

TheCarelessWhisper avatar Mar 23 '20 07:03 TheCarelessWhisper

@TheCarelessWhisper hi there. Wondering if you guys ended up streamlining this, and if you’d be willing to share back your updates here. Sounds like you were planning to do some nice optimizations. Thanks!

dsarno avatar Aug 07 '21 11:08 dsarno