canvasman Posted December 6, 2018 Share Posted December 6, 2018 I need to render current score of players in the game scene. There might be bunch of those in the screen same time. I tried pooling PIXI.Text's but with many of those it wont perform really well. I looked in to https://github.com/PixelsCommander/pixi-sdf-text but it says that it's efficient way for WebGL. I still need to have canvas fallback, would it work with both or only with webgl renderer? Also I tried bitmap texts but those take sometime load if its large. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 6, 2018 Share Posted December 6, 2018 Only webgl. In case of network problem, pack your bitmap font, use static-gzip for it, or brotli (https://github.com/google/brotli). If its JS/page performance problem on load, well, cant help you. If you give me more details, I might recommend how to make pixi text faster. Quote Link to comment Share on other sites More sharing options...
canvasman Posted December 6, 2018 Author Share Posted December 6, 2018 I got it Used BMFont to generate bitmap font of all numbers with large size to fit all my scales. 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.