Fireflies - Scalable Ambient Effects

Scalable Ambient Effects (Fireflies)

Fireflies is a tech sample demonstrating a scalable ambient effect. In this sample, the ambient effect is a swarm of fireflies that scatter and reform into a walking character. Using Intel TBB, the firefly flight trajectory calculations performed per frame are distributed across multiple threads. By changing the number of simulated fireflies programmatically the ambient effect can be scaled to better match the performance of the platform it is running on.

Download Source Code

Download Binaries

Fireflies Video (larger screen)

Scalable Ambient Effects
Blog Post: Multithreaded, Man Explodes Into Fireflies!

Video & Screenshots


Fireflies flock to form a walking character


Fireflies scatter and flock


The sample can run in multithreaded as well as serial mode to better see the performance benefit of multithreading an ambient effect.

What is it?

System Requirements

  1. CPU: Dual core or better (Intel® Core™ i5 or better suggested)
  2. GFX: DX9c capable graphics card
  3. OS: Microsoft Windows Vista* or Microsoft Windows 7*
  4. MEM: 2 GB of RAM or better
  5. Software:
    1. DirectX SDK (June 2010 release or later)
    2. Build with Microsoft Visual Studio 2008* w/SP1 or Visual Studio 2010*

* Other names and brands may be claimed as the property of others.

Additional Code Samples

Intel Visual Adrenaline

A Scalable 3D Particle System

Download PDF

Benefits of SIMD

Download PDF

Visual Adrenaline

Download PDF

Intel Tools for Unreal Developers
TBB for Unreal Engine

Related Links

Visual Computing Home

Intel® Technologies

Sandy Bridge
Parallel Programming

Focus Areas

Game Development



Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.