From d864699c5ddd744ee7376c0d752b6bbb771429a2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 8 Nov 2019 23:02:47 +0100 Subject: Update lattice multiple times per frame Controlled by `--lupf` _Lattice updates per frame_ MLUPS are now calculated and displayed. While performance is still bad compared to a optimized GPU implementation (such as [1] or [2]) this improves the situation. [1]: https://tree.kummerlaender.eu/projects/symlbm_playground/ [2]: https://code.kummerlaender.eu/boltzgen/about/ --- src/shader/code/extra.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shader/code/extra.glsl') diff --git a/src/shader/code/extra.glsl b/src/shader/code/extra.glsl index b8483ae..4b149fb 100644 --- a/src/shader/code/extra.glsl +++ b/src/shader/code/extra.glsl @@ -9,7 +9,7 @@ layout (std430, binding=4) buffer bufferExtra { float extraCells[]; }; uniform uint nX; uniform uint nY; -const float convLength = 1.0 / float(max(nX,nY)); +const float convLength = 1.0 / float(min(nX,nY)); /// Array indexing -- cgit v1.2.3