Skip to content

Latest commit

 

History

History
30 lines (13 loc) · 1.24 KB

README.md

File metadata and controls

30 lines (13 loc) · 1.24 KB

faultline (multithreaded)

Generate terrain images using fault line formation algorithm.

This version uses node's worker_threads to calculate the image generation function on multiple cores. It just adds a couple of lines code and is still fairly easy to read.

On an AMD-FX-6100 it's twice as fast as the single-threaded algorithm.

1024x1024px & 2000 iterations :

  • single-threaded: 13849 ms
  • multithreaded: 6723 ms

The Color-Buffer-Generation is still expensive (~600 ms) and could be optimized in a similar way.

Forked from faultline by barisusakli

10 iterations | 50 iterations | 100 iterations

| |

500 iterations | 1000 iterations | 2000 iterations

| |