For 1,000 stars, this means we haveġ,000 x 1,000 = 1,000,000 million calculations to perform for each frame.
Star is effected by each other star’s gravity. In this example, we will simulate a star field using an ‘N-Body simulation’. Of times faster than just by using the CPU.
Using the compute shader, you can use the GPU to perform calculations thousands