Skip to content
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

improve indexing, line rendering performance by 45% #270

Merged
merged 11 commits into from
Jul 31, 2021
Merged

Conversation

epezent
Copy link
Owner

@epezent epezent commented Jul 31, 2021

Improves performance of line rendering by ~45% by:

  1. using better data indexing schemes (see issues raise in Performance impact of offset and stride / wrap around #122)
  2. using SSE intrinsics for inverse sqrt (taken from Optimize IM_NORMALIZE2F_OVER_ZERO ocornut/imgui#4091)
  3. forcing inlining of code in implot_items.cpp (consequentially also results in smaller binary sizes)

image

Confirmed to produce similar results for multiple compilers:

image

@epezent epezent merged commit 3e96fd7 into master Jul 31, 2021
@epezent epezent deleted the features/indexing branch July 31, 2021 03:33
sthagen added a commit to sthagen/epezent-implot that referenced this pull request Jul 31, 2021
improve indexing, line rendering performance by 45% (epezent#270)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant