Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge files, long saves #14

Open
TheCarelessWhisper opened this issue Apr 25, 2019 · 6 comments
Open

Huge files, long saves #14

TheCarelessWhisper opened this issue Apr 25, 2019 · 6 comments

Comments

@TheCarelessWhisper
Copy link

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.

@Schaggo
Copy link

Schaggo commented Sep 3, 2019

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.

@newyellow
Copy link
Owner

newyellow commented Sep 3, 2019

@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

@Schaggo
Copy link

Schaggo commented Sep 4, 2019

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
Copy link

Schaggo commented Sep 4, 2019

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...

@TheCarelessWhisper
Copy link
Author

@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?

@dsarno
Copy link

dsarno commented Aug 7, 2021

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants