virtualcommons / port-of-mars

Port of Mars is an online, game-based, social science experiment set on the first human community on the Red Planet. We are now in an open beta where anyone aged 18 and over can participate.
https://portofmars.asu.edu
GNU Affero General Public License v3.0
10 stars 16 forks source link

performance optimizations #834

Open sgfost opened 1 year ago

sgfost commented 1 year ago

Remaining client-side tasks:

Server performance needs to be looked at independently (sentry performance monitoring, game server load testing, etc.)

previous performance related issues:

788

666


Treemap of the gzipped bundle:

js/chunk-vendors.js (4.42 MB)
js/app.js (639.7 KB)

image

webpack chunk splitting: https://webpack.js.org/plugins/split-chunks-plugin/

lazy loading routes (for splitting game components from web content): https://v3.router.vuejs.org/guide/advanced/lazy-loading.html#lazy-loading-routes

sgfost commented 1 year ago

Down to ~2.7mb after cleaning up icons and extraneous lodash include. Good enough for now until we monitor performance in prod.

remaining refactors: