-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display median ping time #113
base: master
Are you sure you want to change the base?
Conversation
0c3dee5
to
abfc9d7
Compare
Wow. I really like this. It also points out a sad we have, which is I think we should be using float, not double to reduce the L1 cache footprint, which was never an issue until now, with your algo for computing median. @dreua how do you feel about this. I am pretty happy with it. Also, I feel like we're getting very close to a cnping 1.5! Then after that we might want to go a little more buck-wild, and have the multi-ping tool be a first class citizen. |
One other thought - we should make the horizontal green lines include median. |
I'm glad you like it. Another idea that occurred to me was to draw a boxplot (possibly behind a keybind and/or on the histogram view) so you can see even more percentiles. But since the quickselect algorithm probably already takes orders of magnitude more time than the current calculations maybe that would be overdoing it? |
I would be happy for it to be a second toggle that can go "on top" of the graph optionally. Still something I'd want @dreua 's opinion on. |
I'm gonna give dreua a day or two more. Then, just go for it. |
One other thought - I wonder if we should do something like only calculate median every few frames? |
Hi, I'm sorry I can't say much about this right now. For me personally multiping is the more interesting feature but I absolutely see the point in median calculation, its just not something that I have missed or feel like I would need it in my use cases. Now multiping is waiting far too long for a final review :/ Let's hope I can dedicate some time to this in december... I'd say just go for it and we can always iterate and improve if something turns out to be a problem. |
@dreua Whenever you end up having some free time, let's meet for a call so we can really make this the best ping tool. I agree the multi-ping is higher priority. Additionally, this change makes me a little nervous, I feel like we should profile it. If it has a real tangible difference in CPU usage, it makes me think maybe we shouldn't. @goeiecool9999 - give us a few weeks to see if we can drive this forwards. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@cnlohr Though zooming out a bit you can see there are calls to drawing functions with an incorrect backtrace, even though I added -fno-omit-frame-pointer as instructed here |
Comparing to the CNFGFunctions is not a good comparison, since they are waiting a lot. I am more curious about absolute code time taken per frame. I don't see everything in terms of that. I.e. how many us per frame are taken computing median? |
Calculate the median ping using a public domain algorithm
Usually the median and mean times are close to each other
But as you can see here the mean is heavily skewed by outliers and the median can be more useful.