perf: no change tracking for client ecs

This commit is contained in:
cha0s 2024-07-30 11:51:30 -05:00
parent 90ab588133
commit 392735cf99

View File

@ -64,7 +64,10 @@ function Ui({disconnected}) {
const [externalInventorySlots, setExternalInventorySlots] = useState();
const [particleWorker, setParticleWorker] = useState();
const refreshEcs = useCallback(() => {
setEcs(new ClientEcs({Components, Systems}));
class ClientEcsPerf extends ClientEcs {
markChange() {}
}
setEcs(new ClientEcsPerf({Components, Systems}));
}, [Components, Systems, setEcs]);
useEffect(() => {
async function setEcsStuff() {