Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Offload Physics to Thread #55

Closed
theripper93 opened this issue Apr 29, 2023 · 1 comment
Closed

Improvement: Offload Physics to Thread #55

theripper93 opened this issue Apr 29, 2023 · 1 comment

Comments

@theripper93
Copy link

The system will reach a CPU bottleneck pretty fast when using complex effects, way sooner than any GPU bottleneck.

Implement a way to offload the physics calculations to a worker. Ideally, when a particle is first created the first couple frames are calculated on the main thread while calculations of multiple frames are requested to the worker which can generate the simulation in advance.

Obviously requesting the calculations every frame to the worker would not be possible since you would be bottlenecked by the transfer between threads so the only way i see this working is if the worker calculates multiple frames in advance per request.

@Alchemist0823
Copy link
Owner

Thanks for the suggestion. We are actively working on a WebAssembly based solution and Compute Shader based solution for simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants