Table of Contents

Module: __init__ Benchmark/__init__.py

Imported modules   
import chimera
from chimera import dialogs
from chimera.baseDialog import ModelessDialog
Functions   
calls_per_second
cube_face
cube_surface_model
cube_triangles
draw_scene
gaussian_volume_data
show_benchmark_dialog
show_main_chimera_window
solid_cube_model
  calls_per_second 
calls_per_second ( function,  averaging_interval )

Uses wall clock time time.time() instead of CPU time time.clock() since the latter does not catch time spent waiting for graphics card.

  cube_face 
cube_face (
        size,
        vertices,
        ioffset,
        vertex_indices,
        axis0,
        axis1,
        axis2,
        d,
        )

  cube_surface_model 
cube_surface_model ( size,  mesh=0 )

  cube_triangles 
cube_triangles ( size )

  draw_scene 
draw_scene ()

The Chimera check for changes loop and OpenGL SwapBuffers are bypassed. Chimera check for changes loop introduces delay using tkgui.UPDATE_INTERVAL and SwapBuffers introduces delay from vertical retrace synchronization.

  gaussian_volume_data 
gaussian_volume_data ( size )

  show_benchmark_dialog 
show_benchmark_dialog ()

  show_main_chimera_window 
show_main_chimera_window ()

  solid_cube_model 
solid_cube_model ( size )

Classes   

Benchmark_Dialog

Frame_Rate_Timer

Monitor the Chimera frame rate using the "check for changes" trigger.


Table of Contents

This document was automatically generated on Wed Mar 26 19:02:01 2003 by HappyDoc version 2.1