Skip to content
This repository has been archived by the owner on Sep 7, 2019. It is now read-only.

Improve performance of ShapeDrawer methods #6

Open
KadinTucker opened this issue Aug 14, 2018 · 0 comments
Open

Improve performance of ShapeDrawer methods #6

KadinTucker opened this issue Aug 14, 2018 · 0 comments

Comments

@KadinTucker
Copy link
Collaborator

Currently, ShapeDrawer methods of drawing polygons, bezier curves, and the base methods of drawing lines run very slowly and consume a lot of gpu performance.
One way to fix this may be to cache the shapes drawn somehow-I would suggest as surfaces-and instead of having drawPoint be the only functionality that needs to be defined in ShapeDrawers have a draw surface defined as well. For Surfaces this is obviously blit. For the Renderer, it can create textures and cache them on its own, perhaps.
Regardless, this is an issue which should be addressed at some point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant