smix8 / GodotAnimationRetargeting

Animation Retargeting module for Godot Game Engine
MIT License
129 stars 9 forks source link

Add a skip for (re)calculating retargeting data on unchanged skeletons and mappings #11

Closed smix8 closed 3 years ago

smix8 commented 3 years ago

Required retargeting data is currently always calculated when start_retargeting() is used (or editor button pressed).

While not very noticeable in the C++ module this can add a lot of additional processing time on the slow GDScript version.

After the first retargeting the data does not really need to be recalculated as long as:

A skip for (re)calculating offsets after the first retargeting and only reset when something changes could improve performance, especially for GDScript.

smix8 commented 3 years ago

Added by commit 460b1bb0ad9715724258438f09d2869f7a4a4402 for Godot_3.x and commit 8969555c780c33900ba095a4bcc5e8bf905577e7 for Godot_3.x_gdscript.

Godot 4.x updates will come later, some additional quirks to solve.