Skip to content

Commit

Permalink
Merge branch 'main' into volume-agents
Browse files Browse the repository at this point in the history
  • Loading branch information
frasercl committed Oct 28, 2024
2 parents ccfccf3 + 12d8ab7 commit 4af3d98
Show file tree
Hide file tree
Showing 20 changed files with 1,095 additions and 672 deletions.
165 changes: 72 additions & 93 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"css-loader": "^6.9.1",
"html-webpack-plugin": "^5.6.0",
"mini-css-extract-plugin": "^2.7.7",
"webpack": "^5.90.0",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
}
Expand Down
1 change: 1 addition & 0 deletions examples/src/Viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ class Viewer extends React.Component<InputParams, ViewerState> {
backgroundColor={[0, 0, 0]}
lockedCamera={false}
disableCache={false}
maxCacheSize={Infinity} // means no limit, provide limits in bytes, 1MB = 1000000, 1GB = 1000000000
/>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ export const nullAgent = (): AgentData => {
subpoints: [],
};
};

// the size of the header before the agent data in the binary file
export const AGENT_HEADER_SIZE = 3; // frameNumber, time, agentCount

export const BYTE_SIZE_64_BIT_NUM = 8;
1 change: 0 additions & 1 deletion src/controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ export default class SimulariumController {

this.visData.WaitForFrame(0);
this.visData.clearForNewTrajectory();
this.visData.cancelAllWorkers();

this.stop();

Expand Down
Loading

0 comments on commit 4af3d98

Please sign in to comment.