/
DebugStats.ts
80 lines (65 loc) · 1.57 KB
/
DebugStats.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* デバッグ統計
*
* エンジン開発用の統計オブジェクトである。
*
* NOTE: オブジェクトの振舞いはエンジンの実装に依存するため、一般アプリの開発では使用できない。
*/
class DebugStats {
/**
* リクエスト待ちの DEM 数
*/
num_wait_reqs_dem: number;
/**
* リクエスト待ちの画像数
*/
num_wait_reqs_img: number;
/**
* 描画地表断片数
*/
num_drawing_flakes: number;
/**
* 描画地表断頂点数
*/
num_drawing_flake_vertices: number;
/**
* 地表断片処理 A の数
*/
num_procA_flakes: number;
/**
* 地表断片処理 B の数
*/
num_procB_flakes: number;
/**
*
*/
constructor()
{
this.num_wait_reqs_dem = 0;
this.num_wait_reqs_img = 0;
this.num_drawing_flakes = 0;
this.num_drawing_flake_vertices = 0;
this.num_procA_flakes = 0;
this.num_procB_flakes = 0;
}
/**
* 統計値をクリア
* @package
*/
clearStats(): void
{
this.num_wait_reqs_dem = 0;
this.num_wait_reqs_img = 0;
this.num_drawing_flakes = 0;
this.num_drawing_flake_vertices = 0;
this.num_procA_flakes = 0;
this.num_procB_flakes = 0;
}
/**
* 更新が完了したときに呼び出される
*/
onUpdate(): void
{
}
}
export default DebugStats;