We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This causes the entire list to be copied over. It's pretty slow, if we going to do this every game cycle.
if (s.Count == TIMING_SAMPLES) { s.RemoveAt(0); }
This is Linq call and will cause memory allocation. Would be nice to avoid that, especially in a code that supposed to measure performance.
_executionTimings[name] = (long)s.Average();
I would replace List with some sort of cyclic buffer to avoid removing elements and replace Linq query with foreach cycle or even SIMD.
The text was updated successfully, but these errors were encountered:
Changed from List<T> to RcCyclicBuffer in DtCrowdTelemetry execution …
f87ec7f
…timing sampling @wrenge - #51
ad504fe
Merged! Thank you for your contribution! @wrenge
Sorry, something went wrong.
No branches or pull requests
This causes the entire list to be copied over. It's pretty slow, if we going to do this every game cycle.
This is Linq call and will cause memory allocation. Would be nice to avoid that, especially in a code that supposed to measure performance.
I would replace List with some sort of cyclic buffer to avoid removing elements and replace Linq query with foreach cycle or even SIMD.
The text was updated successfully, but these errors were encountered: