Performance question
Hi everyone, I have a question, I think there maybe a question like mine posted somewhere, I tried to find but can't have a good answer. In my scene, I have a lot of picture, I use Sprite.fromImage to...
View ArticlePixijs Graphics DrawPolygon as Mask
I am using PIXIJS Canvas Renderer and trying to apply a graphics polygon as mask in a sprite. When add graphics polygon as sprite.mask, i am getting blank canvas. Am i missing something or its just...
View ArticleStruggling with GC in big project
We are working in a pretty big project. around 10 different games all playable in the same pixi container (not at the same time though). I have a few questions regarding garbage collection: When...
View ArticleDissolve Shaded
Hi all, Would it be possible to create a dissolving filter effect similar to http://kylehalladay.com/blog/tutorial/2015/11/10/Dissolve-Shader-Redux.html with Pixi? I'm no expert on shaders but would...
View ArticlePerformance overhead of PIXI.Container
Hello! I was wondering if `PIXI.Containers` have any associated performance overhead. Take the following examples: Example #1: Extending Container: class SpriteTile extends PIXI.Container {...
View ArticlePurpose of custom Loader instances
Hello! As a relatively new Pixi.js user I have been experimenting with loaders and had a few questions mainly regarding the ability to instantiate custom Loader instances. Pixi provides a default...
View ArticleDoe's PIXI accessibility work at all?
I'm checking out this http://www.goodboydigital.com/pixi-becomes-accessible/ and the demo. I can't see it working. I see no 'HTML layer that sits over the top of a Pixi renderer'. Was this canceled...
View ArticleToo many graphics is too slow
Use Pixi to make a paint app. when mousemove to draw a circle or line or other graphics. If a graphics has more than 1000 items, the fps will be 30 - 40, may be more lower. Is this a wrong way to make...
View ArticleHow to cull objects out of camera view?
I know this has been asked a few times, but I cannot seem to get it to work in my implementation. I use this code to control the camera: stage.pivot.x = user.position.x; stage.pivot.y =...
View ArticleWhat is the logic behind `sprite / graphic / sprite / graphic is slower than...
Here: https://github.com/pixijs/pixi.js/wiki/v4-Performance-Tips it says Quote Being mindful of this order can help, for example sprite / graphic / sprite / graphic is slower than sprite / sprite /...
View ArticlePixi.js Showcase
Made anything cool with pixi.js? Post it up here and share it with the world! Whether it's a cool game demo, a fully fledged website or some tripped-out crazy experiment, we would all LOVE to see it!...
View ArticleHow to win at PIXI.extras.BitmapText ?
hi, I'm trying to get bitmap fonts working, with little success. Now, the font that the pixi example uses, does work, e.g. -...
View ArticleWhen to use Bitmap Text & Text?
Bitmap Text gives much better performance for dynamically changing Text. (source) Text has more attributes and is easier to change it's style. Bitmap Text has better better performance but static when...
View ArticleCorrect way to remove sprites / container
Hi, i wondering what is correct way to remove container ? Is it enough to call destroy function on container, or do i need to remove each sprite first. And what about removing container from root...
View ArticleGood resources
Is there a good book for learning pixi.js? And other learning resources.
View ArticleKeyboard events
Newbie Developer here. I'm working through the examples and I'm learning so much! I'm to the point where I would like to make my sprites move. I'm learning on PC (Windows) so I need to capture events...
View ArticleHow to clean up Graphics.generateCanvasTexture() calls
Hello. I'm drawing charts with Graphics.generateCanvasTexture() every frame. I need exactly canvas renderer due to antialiasing. The problem is browser's memory usage going from 200Mb to 1.2Gb in mere...
View ArticleGet pixeldata in a webgl?
hi. Can image or container or basetexture can get pixeldata like imagedata? I wanna spawn particle on part of drawing position. so I wanna get pixeldata from image like sprite, container, texture or...
View ArticleTexturePacker Animations Problem
Hi all, been trying to use the .animations feature of texturepacker for a small animated icon, but for some reason It's not finding the animations object even though it's detected and visible in the...
View ArticleSprite's containsPoint method check alpha
Hello! `Sprite` support `containsPoint` method, But it just check the point is in the sprite area depend on width and height not by imageData. For example, if the sprite image is a totally transparent...
View Article