We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5429677 commit 40d668bCopy full SHA for 40d668b
benches/sims/n-body-mt/world.ts
@@ -1,4 +1,4 @@
1
-import { createWorld, World as IWorld } from '@bitecs/classic';
+import { createWorld, World as IWorld, enableBufferedQueries } from '@bitecs/classic';
2
3
export type World = IWorld & {
4
workers: Record<string, Worker[]>;
@@ -8,10 +8,12 @@ export type World = IWorld & {
8
};
9
10
11
-export const world = createWorld({
12
- workers: {},
13
- time: {
14
- then: performance.now(),
15
- delta: 0,
16
- },
17
-});
+export const world = enableBufferedQueries(
+ createWorld({
+ workers: {},
+ time: {
+ then: performance.now(),
+ delta: 0,
+ },
18
+ })
19
+);
0 commit comments