perf: no change tracking for client ecs
This commit is contained in:
parent
90ab588133
commit
392735cf99
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user