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

Use StageGL for CreateJS #47

Open
danzen opened this issue Mar 7, 2023 · 1 comment
Open

Use StageGL for CreateJS #47

danzen opened this issue Mar 7, 2023 · 1 comment

Comments

@danzen
Copy link

danzen commented Mar 7, 2023

You could try using StageGL (GPU based) with CreateJS

this.stage = new createjs.StageGL("canvas");

and then you need to cache() the rectangles so they are bitmaps

rect.cache(0, 0, size, size);
this.stage.addChild(rect);

@gnykka
Copy link
Collaborator

gnykka commented Mar 13, 2023

@danzen I didn't work with CreateJS so I'll need to read and learn to implement the example.
If we have rectangles of different sizes will the cache do its thing?

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

2 participants