OpenXRay / xray-16

Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
https://discord.gg/sjRMQwv
Other
2.97k stars 456 forks source link

Try to use ozz-animation #1675

Open Xottab-DUTY opened 4 months ago

Xottab-DUTY commented 4 months ago

Remove original animation system code from xrRender and use https://github.com/guillaumeblanc/ozz-animation

Advantages:

  1. Animation system has reasonably big amount of code that takes time to compile and it gets compiled two times because we have two renderers. Putting it into separate library is problematic due to #ifdefs in the code. With ozz-animation we can just use separate GAPI-agnostic library.
  2. More advanced features available.
  3. Designed with multithreading in mind. (https://guillaumeblanc.github.io/ozz-animation/samples/multithread/) Since animations calculations take reasonable amount of time during the frame, it's a good place for significant improvement.
  4. High-quality third party library – reduces code that we need to support ourselves.

Disadvantages, limitations?

To be identified.