Visualization Performance Meter

Visualization Performance Meter is a new QT sample which is intended to demonstrate the new "Graphic Performance Upgrade" functionality.

- The main objective is to compute more quickly large models with graphic presentations of up to 500K triangles to avoid consuming much virtual memory.

- The second objective is to decrease the display animation time using the new OpenGL functionality glDrawArray according to the graphic card and low level driver capabilities.

- The third objective is to add the possibility to use texture-mapped fonts as an alternative to traditional bitmap fonts in order to increase performance of visualization of large portions of text.

Performance measurement

A comparison is made between the use of the traditional graphic strategy and the use of the new graphic functionality.

Measurements are given in elapsed and CPU time for:

- Building graphic presentation

- View update

Manipulation of the graph plotting view

- Horizontal zoom - Alt MB1

- Vertical zoom - Alt MB3

- Pan - Ctrl MB3

Test scenarios

I. Pre-defined test scenario (a sequence of the test shapes)

1. Start the sample

2. Press the "New 3D Viewer" button to open a new document

3. Press the "Start automatic testing" button to set the displaying parameters, for example:

- The "Start with sphere containing" field to 100,000 elements

- The "Stop at" field to 1,000,000 elements

- The "Step" field to 100,000 elements

4. Press the "Start" button

The sample will redraw the spheres in the shading mode from 1,000,000 elements to 1,000 elements with a step of 1,000 elements, make necessary performance measurements both for traditional (called "non-optimized" in the sample) and new ("optimized") graphical presentations of the shape or text visualization if the "Test Text Performance" box is checked.

II. Custom test scenario (an arbitrary shape)

1. Start the sample

Traditional (non-optimized) mode:

2. Press the "New 3D Viewer" button to open a new document

3. Select " Load object/Sphere" from the pop-up menu (activated by right mouse click) to load the shape

The sample will build graphics for non-optimized graphical presentation of the shape.

4. Close Document

New (optimized) mode:

5. Press the "New 3D Viewer" button to open a New Document

6. Press the "Turn on/off graphical presentation" button to turn on optimized graphical presentation of the shape

7. Select " Load object/Sphere" from the pop-up menu (activated by right mouse click) to load the shape

The sample will build graphics for optimized graphical presentation of the shape.

NOTE: For most accurate performance measurements it is recommended to load one test shape per document.

Remarks:

- Available only on Windows platforms;

- To start it use OCC\Samples\Standard\Visualization Performance Meter item of the Programs menu.