Tyler Hallada
4d1ef84568
Unfortunately, all of the train data has to be copied from the train web worker to the main thread on every tick so it knows the new positions of the trains to render. So every few ticks, the GC causes a little lag as it collects ~90+MB of obsolete train arrays. There's no way for the two threads to share the same data thanks to Spectre.
57 lines
1.8 KiB
JSON
57 lines
1.8 KiB
JSON
{
|
|
"name": "transport",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "NODE_ENV=development ./node_modules/.bin/webpack-dev-server --mode development",
|
|
"build": "NODE_ENV=production ./node_modules/.bin/webpack --mode production && cp CNAME dist/",
|
|
"deploy": "./node_modules/.bin/gh-pages -d dist --remote github",
|
|
"lint": "./node_modules/.bin/tslint src/",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@git.hallada.net:pixi.git"
|
|
},
|
|
"author": "Tyler Hallada",
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.0.0-beta.42",
|
|
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.42",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.42",
|
|
"@babel/preset-env": "^7.0.0-beta.42",
|
|
"babel-loader": "^8.0.0-beta.2",
|
|
"css-loader": "^0.28.11",
|
|
"eslint": "^3.17.0",
|
|
"eslint-config-airbnb-base": "^11.1.1",
|
|
"eslint-config-standard": "^7.0.0",
|
|
"eslint-plugin-import": "^2.2.0",
|
|
"eslint-plugin-promise": "^3.5.0",
|
|
"eslint-plugin-standard": "^2.1.1",
|
|
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
|
"file-loader": "^1.1.11",
|
|
"gh-pages": "^1.1.0",
|
|
"html-webpack-plugin": "^3.1.0",
|
|
"style-loader": "^0.20.3",
|
|
"ts-loader": "^4.1.0",
|
|
"tslint": "^5.9.1",
|
|
"tslint-config-airbnb": "^5.8.0",
|
|
"typescript": "^2.8.1",
|
|
"uglifyjs-webpack-plugin": "^1.2.4",
|
|
"webpack": "^4.4.1",
|
|
"webpack-cli": "^2.0.13",
|
|
"webpack-dev-server": "^3.1.1",
|
|
"worker-loader": "^1.1.1"
|
|
},
|
|
"dependencies": {
|
|
"@types/pixi.js": "^4.7.2",
|
|
"@types/stats.js": "^0.17.0",
|
|
"@types/tinycolor2": "^1.4.0",
|
|
"pixi-viewport": "^1.5.0",
|
|
"pixi.js": "^4.7.1",
|
|
"stats.js": "^0.17.0",
|
|
"tinycolor2": "^1.4.1"
|
|
}
|
|
}
|