prokopcm Posted June 14, 2021 Share Posted June 14, 2021 Hi, I'm having trouble figuring out how to downscale the resolution of a Container. Basically I want my Application in general to render at full resolution, but have certain "layers" made up of Containers render at half or quarter resolution for performance reasons. In particular, I'm trying to get an entire Pixi ParticleContainer with some flashy effects to render at half resolution. I've attached an image of what I'm trying to achieve. Is what I'm thinking of possible, or will it not have the perf benefits I'm thinking of (since at the end even if the Container is half-resolution scaled up, it still gets rasterized and rendered to a full-resolution canvas)? Any ideas for how I might achieve this in Pixi? Thanks! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 15, 2021 Share Posted June 15, 2021 (edited) add an AlphaFilter, set its resolution also ParticleContainer doesnt have bounds so you have to specify them on your own with "filterArea" (in screen coords!!!), or overriding calculateBounds somehow and of course filter adds performance problem too - its using temporary renderTexture also, no MSAA (antialias) for you in that case. Edited June 15, 2021 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
prokopcm Posted June 15, 2021 Author Share Posted June 15, 2021 Ok, will give that technique a try! Thank you for the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.