Closed james7132 closed 1 year ago
On point one, the functor overhead is the same as a virtual call. http://kennethxu.blogspot.com/2009/05/strong-typed-high-performance_15.html
At this rate, please use UnityGGPO, I'm more focused on maintaining the Rust version of this library than the Unity C# one.
The C style of passing callbacks works for a C/C++ implementation like GGPO with a C BPI, but does not work well in a C# environment. It might be better to set up a interface or abstract class. There are several benefits of this: