Closed ZerxZ closed 2 months ago
@ZerxZ Can you explain what you have done to improve the Bind Performance?
Am I expected to see this in the generated code?
public Godot.Collections.Array FaceLandmarks
{
get => (Godot.Collections.Array<MediaPipeNormalizedLandmarks>)Get("face_landmarks");
set => Set("face_landmarks", Variant.From(value));
}
public static Godot.Collections.Array<GodotObject> ToGodotObjectArray(Godot.Collections.Array array)
{
return (Godot.Collections.Array<GodotObject>)(Variant)array;
}
@ZerxZ
This remains fails
public Godot.Collections.Array<MediaPipeNormalizedLandmarks> FaceLandmarks
{
get => Get("face_landmarks").AsGodotArray<MediaPipeNormalizedLandmarks>();
@ZerxZ
This remains fails
public Godot.Collections.Array<MediaPipeNormalizedLandmarks> FaceLandmarks { get => Get("face_landmarks").AsGodotArray<MediaPipeNormalizedLandmarks>();
Based on your use case, you need to call ToBindArray
.
@Delsin-Yu
where do I apply ToBindArray ?
GDExtensionHelper does not have ToBindArray
@Delsin-Yu
where do I apply ToBindArray ?
GDExtensionHelper does not have ToBindArray
You should download this PR modification file, then overwrite the local file, and regenerate the code.
var bindarray =GDExtensionHelper.ToBindArray<TClass>(array);
But these later changes might be deleted and won't be retained, they're just for reference.
@ZerxZ I tried out. The performance is definitely better. The video is smooth. Thank you
@ZerxZ Thank you for trying.