From 40d668ba5578715baabd0835fe49914f1e346948 Mon Sep 17 00:00:00 2001 From: Kris Baumgartner Date: Tue, 18 Jun 2024 13:53:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20@sim/n-body-mt:=20Update?= =?UTF-8?q?=20for=20new=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- benches/sims/n-body-mt/world.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/benches/sims/n-body-mt/world.ts b/benches/sims/n-body-mt/world.ts index bba6601a..1812e277 100644 --- a/benches/sims/n-body-mt/world.ts +++ b/benches/sims/n-body-mt/world.ts @@ -1,4 +1,4 @@ -import { createWorld, World as IWorld } from '@bitecs/classic'; +import { createWorld, World as IWorld, enableBufferedQueries } from '@bitecs/classic'; export type World = IWorld & { workers: Record; @@ -8,10 +8,12 @@ export type World = IWorld & { }; }; -export const world = createWorld({ - workers: {}, - time: { - then: performance.now(), - delta: 0, - }, -}); +export const world = enableBufferedQueries( + createWorld({ + workers: {}, + time: { + then: performance.now(), + delta: 0, + }, + }) +);