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

Opengl accelerated #27

Open
ehartford opened this issue Oct 25, 2022 · 2 comments
Open

Opengl accelerated #27

ehartford opened this issue Oct 25, 2022 · 2 comments

Comments

@ehartford
Copy link

I would like to have GPU accelerated FFT.
Is it possible?
This will have applications for real time simulations and games.

@liamappelbe
Copy link
Owner

That's probably possible, but it's not something I'm going to attempt in this package.

I'd also caution against premature optimisation. Have you tried the performance tips? If you've tried those, and confirmed that FFT is still the main bottleneck in your code (don't just assume this, measure it), then it might make sense to consider further optimisations like GPU acceleration. I think it's going to be pretty difficult to do.

Do you have a specific use case in mind?

@ehartford
Copy link
Author

ehartford commented Oct 25, 2022

I do have a specific use case, although there are many applications of FFT for 2D and 3D games, my specific use case is to implement Jos Stam's 2D fluid solver.

I am making a game for IOS and Android, that is underwater with realistic currents and eddies.

I can prototype it with fftea, and perhaps it will be fast enough with CPU. But, it would be ~10x faster with GPU.

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