-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: interpolation The output data type of the simulation component was changed to enhance the visual representation of the simulation. Initially, a simple Float32Array was used. However, a more complicated output data type - an array of Float32Arrays - was introduced to better represent the density data. We also added interpolation to handle low frame rates. This modification will provide a smoother simulation display. Furthermore, loggers were improved to provide more insights about the worker creation, frame rate, and the interpolation process. The naming of temporary variables holding crucial data was also refined for a better understanding of the codebase. Lastly, the code organization was improved and clearer comments were added. BREAKING CHANGE: Output from worker now distributes the data per second instead of per each run * fix(simulation): add deps bug in `useEffect` the missing deps have been re-added to useEffect in Simulation.tsx according to ESLint Check * perf(worker): optimize cache handling in modelWorker Changed the way cache is handled in the modelWorker file. Instead of duplicating the entire cache with the 'slice' method, the change uses the cache directly because the copy will automatically handled by postMessage. This optimization reduces unnecessary resource consumption and improves efficiency.
- Loading branch information
Showing
3 changed files
with
88 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters