openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

debug profiler sometimes errenously attributes time to plugins #195

Open XertroV opened 1 year ago

XertroV commented 1 year ago

I have a plugin that has void RenderInterface() {}. Despite this, very occasionally openplanet will attribute ~8ms to it:

https://user-images.githubusercontent.com/1046448/197389688-7520d3bb-5021-49ae-a3c8-49bb0ce414eb.mp4

This should not be possible since that function is empty.

It's not a big deal (doesn't really impact anything), but it's enough for an issue.

edit: sample code: https://github.com/XertroV/tm-rejoin-last-server/tree/sample-8ms-render-interface

edit2: this happens like once a minute mb, it's infrequent

codecat commented 1 year ago

Weird. I wonder if there's another plugin doing some weird multithreading things, although stuff should be thread safe. I'll see if I can reproduce it.