Skip to content

Commit

Permalink
♻️ @sim/n-body-mt: Update for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
krispya committed Jun 18, 2024
1 parent 5429677 commit 40d668b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions benches/sims/n-body-mt/world.ts
Original file line number Diff line number Diff line change
@@ -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<string, Worker[]>;
Expand All @@ -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,
},
})
);

0 comments on commit 40d668b

Please sign in to comment.