Skip to content

Generate terrain images using fault line formation algorithm

License

Notifications You must be signed in to change notification settings

a1xon/faultline

 
 

Repository files navigation

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

| |

About

Generate terrain images using fault line formation algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%