caymanbruce Posted July 3, 2017 Share Posted July 3, 2017 I have tried my game on both Chrome and Safari. On Chrome I think it turns on antialias automatically without setting antialias to true. My game frame rate is about 24 - 30 FPS. On Safari if I turn off antialias the frame rate is 55 - 60 FPS, but with "antialias = true" my game frame rate drops to 40 FPS and game play become very slow. But if I don't use antialias on Safari all the PIXI Graphics will have jagged edges. Is there anything I can do about that? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 3, 2017 Share Posted July 3, 2017 Apply http://pixijs.download/dev/docs/PIXI.filters.FXAAFilter.html on whole stage. Dont forget to set "stage.filterArea = renderer.screen". There are other options for graphics but they require deep research and porting special shaders. Quote Link to comment Share on other sites More sharing options...
caymanbruce Posted July 3, 2017 Author Share Posted July 3, 2017 1 minute ago, ivan.popelyshev said: Apply http://pixijs.download/dev/docs/PIXI.filters.FXAAFilter.html on whole stage. Dont forget to set "stage.filterArea = renderer.screen". There are other options for graphics but they require deep research and porting special shaders. I don't use WebGL. Does filter work with Canvas? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 3, 2017 Share Posted July 3, 2017 If you dont use WebGL then you have no options for optimizations. No way to improve usage of Canvas2D API, pixi graphics uses it 1:1. Quote Link to comment Share on other sites More sharing options...
caymanbruce Posted July 4, 2017 Author Share Posted July 4, 2017 On 7/3/2017 at 7:15 PM, ivan.popelyshev said: If you dont use WebGL then you have no options for optimizations. No way to improve usage of Canvas2D API, pixi graphics uses it 1:1. so sad to know. 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.