epezent / implot

Immediate Mode Plotting
MIT License
4.79k stars 531 forks source link

improve indexing, line rendering performance by 45% #270

Closed epezent closed 3 years ago

epezent commented 3 years ago

Improves performance of line rendering by ~45% by:

1) using better data indexing schemes (see issues raise in #122) 2) using SSE intrinsics for inverse sqrt (taken from https://github.com/ocornut/imgui/pull/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