jstepien / boids

Some CUDA and Emscripten hacking.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boids

See http://www.red3d.com/cwr/boids/ for some background.

Requirements

For the GPU version you'll need

Both the CPU and the GPU versions require

The JavaScript version depends on

Building

There are three main make targets:

  • cpu
  • gpu
  • boids.js

OpenMP is supported – if you're using GCC turn it on by adding -fopenmp to CFLAGS and LDFLAGS.

Usage

The -f command line argument enables the fullscreen mode.

An attractor can be set using the left mouse button and removed using the right mouse button.

Pressing any key kills the application.

License

See LICENSE.

About

Some CUDA and Emscripten hacking.

License:MIT License


Languages

Language:C 54.5%Language:C++ 43.0%Language:JavaScript 2.5%