Improve netcode and simplify (#4)
All checks were successful
Build & deploy / Build & deploy website (push) Successful in 32s
Build & deploy / Build & publish server image (push) Successful in 1m2s

- Simplify the logic wherever possible to remove overengineering and simplify the netcode
- Actually improve the netcode
- The new lines are mainly the package locks and tests

Reviewed-on: https://home.schmelczer.dev/git/andras/decla-red/pulls/4
This commit is contained in:
Andras Schmelczer 2026-09-15 07:57:57 +01:00
commit 93a7fe01ab

13
test/setup.mjs Normal file
View file

@ -0,0 +1,13 @@
// Use production's f64 vector type in every package. The import-order regression separately
// verifies that physics constants also retain full precision before startup configures it.
import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
for (const path of [
'../shared/node_modules/gl-matrix',
'../backend/node_modules/gl-matrix',
'../frontend/node_modules/gl-matrix',
]) {
require(path).glMatrix.setMatrixArrayType(Array);
}