Skip to content

Commit 8cdaea3

Browse files
committed
Perf percent
1 parent db021b2 commit 8cdaea3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/three/cesiumCompare.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ function updateThreeStats() {
176176
writeStats( threeStats, 'load end', ( loadDelta < 0 ? '--' : loadEnd.toFixed( 0 ) + ' ms' ) );
177177
writeStats( threeStats, 'load delta', ( loadDelta < 0 ? '--' : loadDelta.toFixed( 0 ) + ' ms' ) );
178178
writeStats( threeStats, 'total load time', threeViewer.totalLoadTime.toFixed( 0 ) + ' ms' );
179+
writeStats( threeStats, 'perf', ( 100 * threeViewer.totalLoadTime / cesiumViewer.totalLoadTime ).toFixed( 2 ) + '%' );
179180

180181
}
181182

0 commit comments

Comments
 (0)