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
Bug: Sprite alpha masks broken in chrome & edge #10425
Comments
heya, i set up this playground to apply the masks https://www.pixiplayground.com/#/edit/EwmDuvFCs8id9JvOC4Y5b it seems to be working ok for me in chrome? @HughEdwards1 could you verify pls? Cheers man! |
Hey @GoodBoyDigital Thanks so much for having a look. However I've since made a horrific discovery. I'm not really sure what this says for me. Hardware issue? OS gl issue? |
...Restart unsurprisingly did not help. Pain in the ass to replicate I imagine. Edit: No love after software update, still busted |
hey, could you try using 8.1.0? or setting the renderer to WebGL pls? I think it maaaaay be a WebGPU issue |
WebGL sorts the issue. At the cost of a lot of lovely performance which I've come to expect : ( |
You know, i think there is a legit WebGPU bug somewhere in here - similar issue here #10406 Can i ask - whats the performance difference for you? WebGL should be similar speeds? Thanks! |
I measured it (my actual full scale project) in a few different test cases: Then again for both resolutions after removing the alpha masks (welcome back to the original pain) because I noticed even a single large sprite was having a significant performance hit (app is 4K reso.. so at 2x reso I think the textures were just pushing some boundaries) In almost every case the webgpu version was about twice as fast to render a frame Edit: Within all of this - I've tried on a few different machines, on the mac though things aren't as sharp on 1x.. possibly to do with retina screens? Maybe something else for me to explore |
Current Behavior
I'm creating some alpha masks using sprites from a gradient fill (using a render texture to use the graphics object as a texture... is there another way to do this on current pixi?).
I'm applying it to rect objects, and in this example I create them all identically, except the heights of the objects when masks are applied vary unexpectedly.
Expected Behavior
All rects have the same height.
Steps to Reproduce
Code duplicated from playground example here:
Environment
pixi.js
version: 8.0.4Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: