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

More efficient Path capabilities #20

Open
pzl opened this issue Nov 20, 2014 · 1 comment
Open

More efficient Path capabilities #20

pzl opened this issue Nov 20, 2014 · 1 comment

Comments

@pzl
Copy link
Owner

pzl commented Nov 20, 2014

Currently creating all paths will all capabilities. This may use more resources than necessary1 when used on simple paths. Instead, maybe take a minimum-and-build-up approach where a path is created with bare minimum capabilities, and as each function is requested (a transform, an interpolation) the capability is dynamically added before the operation.

1: ARM Mali GPU doc:

3.2.6. Set correct path capabilities

Specify what your paths are going to be used for. If VG_PATH_CAPABILITY_*_FROM or VG_PATH_CAPABILITY_MODIFY are not required, the driver can conserve memory as it can throw away the original input data.

@pzl
Copy link
Owner Author

pzl commented Nov 20, 2014

OpenVG 1.0.1 spec:

At the time a path is defined, the application specifies which operations it wishes to be able to perform on the path. Over time, the application may disable previously enabled capabilities, but it may not re-enable capabilities once they have been disabled.

Should still look into using reduced-capability paths, but may need some other approach like using intermediate paths

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

No branches or pull requests

1 participant