Move random number generation to the GPU
authorMartin Lambers <marlam@marlam.de>
Tue, 18 Dec 2018 11:03:36 +0000 (12:03 +0100)
committerMartin Lambers <marlam@marlam.de>
Tue, 18 Dec 2018 11:03:36 +0000 (12:03 +0100)
commit40b020707e6a78f49e147ae3073bb90595f88786
treec5ade0269e94febff8e4b52058684a3a40ac6f01
parent5b5bd9c9aedc187f8870fc81d4e7541616d807fe
Move random number generation to the GPU

The random numbers are of lower quality than the CPU-produced ones, but should
be sufficient for noise simulation. The code is simplified and both CPU
processing time and bus transfers are reduced significantly.

However, overall simulation time does not necessarily decrease in all cases,
since CPU processing and bus transfers may have run asynchronously before,
depending on the application.
libcamsim/camsim.qrc
libcamsim/simulation-everything-fs.glsl
libcamsim/simulation-pmd-dignums-fs.glsl
libcamsim/simulation-whitenoise-fs.glsl [deleted file]
libcamsim/simulation-whitenoise-vs.glsl [deleted file]
libcamsim/simulation-zero-fs.glsl [deleted file]
libcamsim/simulation-zero-vs.glsl [deleted file]
libcamsim/simulator.cpp
libcamsim/simulator.hpp