Boids-Godot4-ComputeShader
A downloadable game for Windows
This is a boids demo written in Godot 4.1. This demo leverages a combination of GDScript, compute shaders, and particle shaders. The GDScript handles the UI and overall setup and execution. The compute shader performs the boid simulation calculations and writes the position and rotation information to an image. This image is then converted to a texture and read by the particle shader to render the boids. This has allowed me to simulate 32,000 boids at 30 FPS on my development machine. I was able to handle about 300 on the CPU for comparison.
I may continue to work on it and make enhancements, but I would like to share it with people interested in playing with it or learning about any of the topics hyperlinked above.
Source Code: https://gitlab.com/niceeffort/boids_compute_shader/-/tree/main
Machine Specs:
Processor Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz, 2801 Mhz, 4 Core(s), 8 Logical Processor(s)
Physical Memory (RAM) 11.0 GB
GPU: NVIDIA GeForce GTX 1060 6GB
Status | Released |
Platforms | Windows |
Author | niceeffort |
Genre | Simulation |
Tags | 2D |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.