scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
68 stars 17 forks source link

Instancing benchmark demo #586

Closed smlpt closed 6 months ago

smlpt commented 7 months ago

This PR adds a benchmark to the Demo > Advanced menu. It allows you to compare the conventional means of node publishing with instanced geometry, using spheres as objects. The benchmark type can be run in four ways:

There are also parameters for the number of (instanced) particles (defaults to 1000) and the spread in each dimension.

kephale commented 7 months ago

One concern I have is that if a user doesn't know what to expect when running this, they could have a pretty bad time (e.g. if they run the addNode publish all with too many agents then it will get stuck).

Maybe some kind of warning in the Command dialog itself that they should be cautious, it could freeze their application, etc..

smlpt commented 7 months ago

That's a good point. I added a label with approximate timings:

image

kephale commented 7 months ago

The last requests would be:

smlpt commented 7 months ago

Added a benchmarking page to the docs and registered a gradle task to run the benchmark from a CLI.

smlpt commented 7 months ago

@skalarproduktraum done 👍