Hello Sergey,
I wrote a simple Tcl script for the Draw Test Harness to test the performance of switch selection mode, the Tcl script list as follows:
#
# Test Active Selection Mode performance of occ.
#
# Shing Liu([email removed])
# 2015-03-06 18:02
#
pload ALL
# build a simple scene filled with boxes, cylinders and spheres.
box b 1 2 3
pcylinder c 1 2
ttranslate c 0 0 10
psphere s 1
ttranslate s 0 0 20
set N 10
# array shapes.
set k 0
for {set i 0} {$i < $N} {incr i} {
for {set j 0} {$j < $N} {incr j} {
tcopy b b$k
tcopy c c$k
tcopy s s$k
ttranslate b$k $i*5 $j*5 0.0
ttranslate c$k $i*5 $j*5 0.0
ttranslate s$k $i*5 $j*5 0.0
vdisplay b$k c$k s$k
incr k
}
}
# set display mode to shading.
vsetdispmode 1
vfit
# show system info.
dversion
meminfo
vglinfo
# activates selection mode for all shapes.
puts "active selection mode: vertex"
puts "------------------------------------------"
chrono t1 start
vsetam 1
chrono t1 show
puts "------------------------------------------"
puts "active selection mode: edge"
puts "------------------------------------------"
chrono t2 start
vsetam 2
chrono t2 show
puts "------------------------------------------"
puts "active selection mode: face"
puts "------------------------------------------"
chrono t3 start
vsetam 4
chrono t3 show
puts "------------------------------------------"
From the Tcl Script, I build a simple scene filled with boxes, cylinders and spheres, there total number is 300, and output the time consuming when change selection mode, here is my output:
Draw[1]> source test.tcl
active selection mode: vertex
------------------------------------------
Elapsed time: 0 Hours 0 Minutes 1.7083635909 Seconds
CPU user time: 1.7004109 seconds
CPU system time: 0 seconds
------------------------------------------
active selection mode: edge
------------------------------------------
Elapsed time: 0 Hours 0 Minutes 3.31749469514 Seconds
CPU user time: 3.3228213 seconds
CPU system time: 0 seconds
------------------------------------------
active selection mode: face
------------------------------------------
Elapsed time: 0 Hours 0 Minutes 5.0015310459 Seconds
CPU user time: 4.9764319 seconds
CPU system time: 0 seconds
------------------------------------------
Draw[2]>
Hope the output result will helpful to you.
Best Regards,
Author