Hello!!! I am currently wondering if it is possible to speed up the ForLoop node.
I know that I should just implement it in C++, but I would like to ask if there is any way to implement the ForLoop node in a function or K2Node?
If anyone has any hints, I would appreciate it if you could let me know.
Thank you.
There is, which is probably what suramaru is referring to, however that sort of thing is probably not really going to provide a huge speed up. The results of a nativized for-loop node are pretty much the same as the macro by the time to get to a running game.
It’s the body of the loop that’s the primary contributor to the performance. Shifting the entire loop to native could be an option, but you could just have an algorithmic problem which is impossible to answer without seeing the code that’s the problem.
How do you even know this is a problem? have you actually profiled it?