utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
560 stars 38 forks source link

Add efficient conversions between primitive JVM arrays and Godot packed arrays #610

Closed CedNaru closed 2 months ago

CedNaru commented 2 months ago

Use a single JNI call to convert a whole JVM primitive array content into a native Godot packed array.

I can't do it for VariantArray the same way as the data type is not homogenous. A more complex system will have to be implemented for it, see #517