hulkyuan Posted May 19, 2023 Share Posted May 19, 2023 ParticleContainer works fine with npm start. but it slow down after production build. particle count is mostly the same. but it animate like slow 0.5x. i use create-react-app .is there anything i missing? npm start works fine scrnli_2023_5_19 14-13-19.mp4 npm run build slow down scrnli_2023_5_19 14-15-44.mp4 Quote Link to comment Share on other sites More sharing options...
hulkyuan Posted May 24, 2023 Author Share Posted May 24, 2023 after 2day's digging.i just changed my package.json from this: "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, to this: "browserslist": { "production": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, i don't know why this production slow down my webgl2. only effect to chrome.safari ,firefox works fine fps remain to 60,chrome drop down like 20fps.i will do some research on browserslist tomorrow 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.