Comments (6)
We have now been running https://zimjs.org/cdn/1.3.4/createjs.js or https://zimjs.org/cdn/1.3.4/createjs_doc.js for a week and all seems good and the chrome message is gone. Will be looking to adjust the GitHub here in a few days unless anyone has any comments otherwise.
from easeljs.
Just trying to look through what uses getImageData() and it seems it is in CreateJS hitTest which is used in handlePointerDown, testMouseOver, masking and filters (some of these might be _ methods). I think maybe if mouseover is true for CreateJS we may as well automatically set willReadFrequently:true on the getContext2D. I am just not sure of any drawbacks to setting the flag to true. Anyone know?
from easeljs.
Okay - we have explored this and come up with a potential solution. If anyone would like to try this test version of CreateJS with a flag - we have had a couple of us try it and it removes the warning and seems to work as well as without the flag. We did find that if we put the flag in a other calls to getContext() that it would run more slowly. https://zimjs.com/cdn/1.3.4/createjs_doc_flag.js We will wait to see if we get some more test results before we update here.
from easeljs.
We had a couple people over in the ZIM forums test and so far so good. We will adjust our version of CreateJS and run with it for a while. If all looks good we will do a patch here. Cheers. Still, any feedback welcome.
from easeljs.
Hey @danzen Happy to see you addressed this issue. I got the warning for the "cacheCanvas" canvas of DisplayObject as I frequently call context.getImageData() on cacheCanvas.
I think it would make more sense if we have the option of setting flag through function parameter.
For example when I call container.cache() I can set the flag through "options" parameter:
container.cache(x, y, width, height, scale, { willReadFrequently: true });
from easeljs.
Sorry - sort of lost the thread here. I think the message is coming up internally a lot... and our solution seems to be running along just fine. So will have another look at it in a bit and do the pullrequest here.
from easeljs.
Related Issues (20)
- Graphics new method 'drawPolygon' HOT 7
- sortChildren on Chrome not working - works in Firefox HOT 1
- Easel JS not working on codepen HOT 1
- Android text lineheight doesn't match Web or Windows HOT 2
- Memory leak when tween assigned HOT 1
- getBounds returns unexpected result after caching with a non-1 scale HOT 2
- can not cache with StageGL instance get "TypeError: Cannot create property 'width' on boolean" HOT 2
- Shadow "Stroke" appears on top of shape when using fill and strokestyle. HOT 4
- New touch issues on touch-screen boards with new Chrome HOT 4
- CreateJS touch 'pressmove' event
- Is it possible to make webgl mask work in animation? HOT 1
- Bitmap class - new createjs.Bitmap - SVG not loading at viewbox size HOT 1
- Text is still compressed when maxWidth is null HOT 1
- Mousemovement Performance improvement HOT 2
- Different Luminence values for Saturation vs Hue HOT 3
- Hit area detection on Samsung Internet Browser HOT 1
- When will you update createjs2.0? The current version of movieclip is incorrect, and stageGL cannot be used. HOT 4
- The Typescript Typings in DefinitelyTyped are missing Graphics.StrokeDash HOT 4
- Createjs website dose not work ! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easeljs.