Giter Club home page Giter Club logo

Comments (2)

guillaumeblanc avatar guillaumeblanc commented on August 25, 2024

Hi,

Thanks for reporting the issue. Very interesting !

With SkinningJob, the data provided is a bunch of spans + strides, meaning the file format I use is irrelevant.

Indeed that's the purpose of using spans for the skinning job. ozz doesn't fix the mesh format, as this is out of the library scope and difficult to make it engine agnostic.

Some cutscene animations call the stream read function 10,000 to 80,000 times for one animation

I was not expecting such an impact on animation reads. The changes to the animation formation done for the release 0.15.0 refactors serialization to use arrays. This significantly reduces the number of reads. Loading an animation with this version take tens of ยตs on an old laptop. Could you have a try ?

Also, just to be sure: are you using ozz::io::Stream provided by ozz, or have you implemented yours?

I'd like for the SamplingJob to receive its data as a set of spans like SkinningJob

It's impossible, constructing a runtime animation is complex, as you can see from the animation builder implementation, and not part of the public API. The public API from user perspective is that ozz will build a valid animation from a valid raw animation (which is easy to build).

and would like the SamplingJob::Context to allow me to provide it with data buffers

That's a good idea. Don't hesitate to provide a PR for this.
Also, have you considered recycling contexts?

Cheers,
Guillaume

from ozz-animation.

guillaumeblanc avatar guillaumeblanc commented on August 25, 2024

I consider this issue fixed with version 0.15.0 optimizations.

Don't hesitate to reopen if needed.

Cheers,
Guillaume

from ozz-animation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.