0 votes

I currently have some code in C++ that I'm bringing into Godot through GDNative:

Array fft(Array values){
    //lots of computation

The function works as I expect it to. One thing that I'm thinking about, though, is whether I'm needlessly copying the contents of 'values' when I call this function, and if so, whether I can pass the Array by reference somehow. I played around with converting the argument of my function from 'Array' to 'const Array&', but I couldn't get anything that worked.

asked Sep 9, 2018 in Engine by crotron (27 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.