29 Days Ago
Bugfix: various ServerProfiler fixes and improvements - Account that native strings are not null terminated when doing unmanaged string comparison - Filter out native profiler funcs from annotation - Unregister profiler callbacks when stopping play in editor (this would cause mono crash on repeat plays due to GCed callbacks) - Reduce scope of unsafe keyword (as some funcs are safe) - Replace test-run annotation with fully enabled one - Hook in on frame end to count frames Tests: Started, stopped and started the game in the editor. Wrote some simple test code to validate StrEq. Validated in logs that native serverprofiler functionality is ignored.