d13 Posted September 7, 2017 Share Posted September 7, 2017 Hi Everyone! I have a gazillion little projects happily running a late version of Pixi v3. I'm *considering* upgrading to Pixi v4, but before I do, have a few questions: 1. Is there a v3/v4 change log so that I can find all the API changes in one place? 2. Are there any v4 gotchas I should know about? For example, filters? 3. Should I just skip v4 completely, continuing riding the almost perfect version of Pixi which is v3.0.11, and wait it out till v5? My only concern is reliability and stability, so any sober advice from the user community and Pixi dev team would be much appreciated! Cheers, Rex Quote Link to comment Share on other sites More sharing options...
themoonrat Posted September 7, 2017 Share Posted September 7, 2017 1. I don't think there is a full list of changes from latest v3 to latest v4. There's a changelog of each individual release: https://github.com/pixijs/pixi.js/releases - You could go back from the beginning of the first v4 release onwards, but I'm afraid that's as close as exists as far as I am aware. Multi-texture sprite batching is the big potential performance gain with v4 over v3. The deprecation file will help to see any API changes: https://github.com/pixijs/pixi.js/blob/dev/src/deprecation.js 2. Take a look at our wiki, it covers gotchas / migration guide / advice: https://github.com/pixijs/pixi.js/wiki/ 3. If v3 gives you everything you need, and works, then it doesn't matter what new version comes out in the future... it's always going to cause a few problems because upgrading a lib usually does! There are some v5 proposals on the wiki, and some tagged issues on github: https://github.com/pixijs/pixi.js/labels/Version%3A v5.x . v4 is in pretty much maintenance mode now until v5; there won't be any big changes or breaking changes in the API. I've just shipped a game in v4 without any stability issues, but then each game uses different features, so YMMV Quote Link to comment Share on other sites More sharing options...
d13 Posted September 7, 2017 Author Share Posted September 7, 2017 24 minutes ago, themoonrat said: v4 is in pretty much maintenance mode now until v5; there won't be any big changes or breaking changes in the API. Thanks @themoonrat! The frequently changing v4 API was the biggest reason I was holding out, so I'm glad to hear that it (seems to???) be stable now. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 7, 2017 Share Posted September 7, 2017 You can start by adding https://github.com/ivanpopelyshev/pixi-legacy to the project, it adds some of API's to v3, like Application. I believe that v4 will be LTS because v5 will have a really big number of internal changes (I even forked it for experiments). Don't wait for v5. Btw, most of things I'm doing for v5 is or will be accessible through v4 plugins. Two of them: https://github.com/pixijs/pixi-display/tree/layers , https://github.com/pixijs/pixi-projection And yeah, Filters and Shaders are pain in v4, please read the docs in wiki, I wrote about them (https://github.com/pixijs/pixi.js/wiki/v4-Creating-Filters) and made examples of shader plugins: https://github.com/pixijs/pixi-plugin-example You can ask me here or join pixi slack to get more info if you describe your case in detail. Quote Link to comment Share on other sites More sharing options...
d13 Posted September 8, 2017 Author Share Posted September 8, 2017 Thanks Ivan, that's extremely helpful! 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.