A Packed Memory Array to Keep Moving Particles Sorted - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Communication Dans Un Congrès Année : 2012

A Packed Memory Array to Keep Moving Particles Sorted

Résumé

Neighbor identification is the most computationally intensive step in particle based simulations. To contain its cost, a common approach consists in using a regular grid to sort particles according to the cell they belong to. Then, neighbor search only needs to test the particles contained in a constant number of cells. During the simulation, a usually small amount of particles are moving between consecutive steps. Taking into account this temporal coherency to save on the maintenance cost of the acceleration data structure is difficult as it usually triggers costly dynamics memory allocations or data moves. In this paper we propose to rely on a Packed Memory Array (PMA) to efficiently keep particles sorted according to their cell index. The PMA maintains gaps in the particle array that enable to keep particle sorted with O(log2(n)) amortized data moves. We further improve the original PMA data structure to support efficient batch data moves. Experiments show that the PMA can outperform a compact sorted array for up to 50% element moves.
Fichier principal
Vignette du fichier
vriphys2012.pdf (374.91 Ko) Télécharger le fichier
Vignette du fichier
particles_pma.png (45.91 Ko) Télécharger le fichier
Vignette du fichier
speedup_integers.png (49.39 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Format : Figure, Image
Format : Figure, Image
Loading...

Dates et versions

hal-00762593 , version 1 (07-12-2012)

Identifiants

  • HAL Id : hal-00762593 , version 1

Citer

Marie Durand, Bruno Raffin, François Faure. A Packed Memory Array to Keep Moving Particles Sorted. VRIPHYS 2012 - 9th Workshop on Virtual Reality Interaction and Physical Simulation, Dec 2012, Darmstadt, Germany. pp.69-77. ⟨hal-00762593⟩
678 Consultations
1528 Téléchargements

Partager

Gmail Facebook X LinkedIn More