0

currently bullet physics solution runs on CPU.In this case,collision is very slow.I want to make the collision faster.This can be achieved only by running the solution on GPU.

1 Answers1

2

Don't forget to optimize your code and improve your algorithms. Perhaps consider some Monte Carlo method...

(studying the underlying mathematics is definitely going to be useful; you might make a PhD on your topic)

Learn OpenCL or CUDA and code your physics code with it (it would take you several weeks, and is platform specific). See also this & that. Consider also multi-threaded (e.g. POSIX threads or C++11 std::thread) and OpenMP approaches.

Community
  • 1
  • 1
Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547
  • 3
    I would also consider first if the original code is decently optimized in first place before drawing the "big guns"... – Matteo Italia Oct 21 '15 at 07:17