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

effect json should only be loaded once per effect #2

Open
RandomEtc opened this issue Oct 31, 2011 · 0 comments
Open

effect json should only be loaded once per effect #2

RandomEtc opened this issue Oct 31, 2011 · 0 comments

Comments

@RandomEtc
Copy link
Member

And preferably in a pre-loader, if we can.

It would be useful to be able to create an effect from either a path (as it is now), or a string, or a Json::Value. Using the latter would mean we can parse the cached data and quickly instantiate new effects.

Another option would be to implement a clone method on effects and cache the parsed and ready-to-go effect object itself. But caching raw data or parsed json seems easier to begin with.

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

No branches or pull requests

1 participant