Skip to content
This repository was archived by the owner on Feb 11, 2024. It is now read-only.

Severe performance improvement for brush preview rendering. Fixes #111. #112

Merged
merged 2 commits into from
May 12, 2018

Conversation

Henry00IS
Copy link
Collaborator

@Henry00IS Henry00IS commented May 12, 2018

Issue #111 Found a huge potential performance optimization explains in detail what the problem is.

Instead of creating proper indices on the CPU I now immediately push duplicate vertices to the GPU. I also replaced all of the C# lists with fixed-size arrays reducing the memory usage per call from 1.5 GiB or more to an insignificant amount that no longer freezes the editor.

Performance improvements when:

Attempting to move a single extremely complex brush with 512 polygons, before:

slow

Using this new pull request:

fast

Attempting to view excluded polygons, before:

excludedslow

Attempting to view excluded polygons, after:

excludedfast

@Henry00IS Henry00IS merged commit b2e072b into sabresaurus:master May 12, 2018
@Henry00IS Henry00IS deleted the Performance111 branch May 12, 2018 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant