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

Shape path creation #8

Open
mgthomas99 opened this issue Jun 13, 2018 · 0 comments
Open

Shape path creation #8

mgthomas99 opened this issue Jun 13, 2018 · 0 comments
Assignees
Labels
Improvement: Enhancement New feature or request Improvement: Feature Requests a new feature Improvement: Optimisation Performance or accessibility improvement

Comments

@mgthomas99
Copy link
Owner

Currently, the library's render methods follow the following instructions:

  1. Create a new path
  2. Load vertices into path
  3. Render path
  4. Destroy path

This is great for quick rendering as it means the user does not need to deal with managing paths, but it causes serious decreases in performance once the number of objects exceeds a trivial number.

Instead, the library should offer two functions per shape: one function for creating the desired path, and another for creating and rendering the path automatically. For example, rather than having just a evgRect(...) function, we should have a evgMakeRect(...) and evgRect(...) function, where the latter function simply calls the former, renders the path, and destroys it.

@mgthomas99 mgthomas99 added the Improvement: Enhancement New feature or request label Jun 13, 2018
@mgthomas99 mgthomas99 self-assigned this Jun 13, 2018
@mgthomas99 mgthomas99 added optimisation Improvement: Feature Requests a new feature Improvement: Optimisation Performance or accessibility improvement and removed optimisation labels Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement: Enhancement New feature or request Improvement: Feature Requests a new feature Improvement: Optimisation Performance or accessibility improvement
Projects
None yet
Development

No branches or pull requests

1 participant