Skip to content

Using PolyLine and drawing less points.#1

Open
clrnd wants to merge 3 commits intoAndrewBelt:masterfrom
clrnd:trying_polyline
Open

Using PolyLine and drawing less points.#1
clrnd wants to merge 3 commits intoAndrewBelt:masterfrom
clrnd:trying_polyline

Conversation

@clrnd
Copy link
Copy Markdown

@clrnd clrnd commented Nov 17, 2017

WaveEdit used 50% of my MacBook Pro 2015 CPU when completely idle.

The culprit was renderBankGrid which needs to draw so many lines (just commenting it
dropped usage to 13%).

Drawing only a fourth of the points and using AddPolyLine (which draws them all together),
I managed to get the CPU usage down to 20%.

(I know "CPU usage" is a weak measure, I did check v-sync-less framerate too)

This of course means the preview waves lose some resolution, so no hard feelings if you don't wanna merge this 😁

(I guess the "correct" way to do this is some kind of interpolation)

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.

1 participant