CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.84k stars 3.47k forks source link

Enable fixed viewport size in Sandcastle for performance testing #11138

Open jjhembd opened 1 year ago

jjhembd commented 1 year ago

Viewport size is an important factor in testing the performance of CesiumJS. But most of our performance testing is done in Sandcastle (as recommended by the Performance Testing Guide), where we do not have precise control over the viewport size.

Viewport size affects performance in two significant ways:

  1. Larger viewports will require more tiles to be loaded. This can be significant for high-density building and photogrammetry tilesets.
  2. Larger viewports place more of a burden on the fragment shader. This is significant for rendering atmosphere and voxels.

The current Sandcastle displays a dynamic viewport, which will be resized based on various factors:

If we allow the user to set a fixed viewport size in a Sandcastle, performance-related issues will become more reproducible and testable.

jjhembd commented 1 year ago

As discussed with @ggetz: