@anov/3d 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,7 +28,7 @@ var Develop = /*#__PURE__*/function () {
|
|
|
28
28
|
objectsCount: objects,
|
|
29
29
|
trianglesCount: triangles,
|
|
30
30
|
verticesCount: vertices,
|
|
31
|
-
|
|
31
|
+
drawcall: scene.renderer.info.render.calls,
|
|
32
32
|
memorySize: memory.usedJSHeapSize
|
|
33
33
|
}
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getSceneInfo","Develop","app","scene","sceneControl","objects","vertices","triangles","memory","performance","total","objectsCount","trianglesCount","verticesCount","
|
|
1
|
+
{"version":3,"names":["getSceneInfo","Develop","app","scene","sceneControl","objects","vertices","triangles","memory","performance","total","objectsCount","trianglesCount","verticesCount","drawcall","renderer","info","render","calls","memorySize","usedJSHeapSize"],"sources":["../../../src/module/develop/index.ts"],"sourcesContent":["import type { BaseModule } from '../../utils/abstract'\nimport type Anov3D from '../../sdkEntry'\nimport { getSceneInfo } from '../../utils/index'\n\nclass Develop implements BaseModule {\n app: Anov3D\n\n constructor(app: Anov3D) {\n this.app = app\n }\n\n getInfo() {\n const scene = this.app.sceneControl\n const {\n objects,\n vertices,\n triangles,\n } = getSceneInfo(scene.scene!)\n\n // @ts-ignore\n const memory = performance.memory as any\n\n return {\n total: {\n objectsCount: objects,\n trianglesCount: triangles,\n verticesCount: vertices,\n drawcall: scene.renderer!.info.render.calls,\n memorySize: memory.usedJSHeapSize,\n },\n }\n }\n}\n\nexport default Develop"],"mappings":";;;;;;;AAEA,SAASA,YAAY;AAA2B,IAE1CC,OAAO;EAGX,iBAAYC,GAAW,EAAE;IAAA;IAAA;IACvB,IAAI,CAACA,GAAG,GAAGA,GAAG;EAChB;EAAC;IAAA;IAAA,OAED,mBAAU;MACR,IAAMC,KAAK,GAAG,IAAI,CAACD,GAAG,CAACE,YAAY;MACnC,oBAIIJ,YAAY,CAACG,KAAK,CAACA,KAAK,CAAE;QAH5BE,OAAO,iBAAPA,OAAO;QACPC,QAAQ,iBAARA,QAAQ;QACRC,SAAS,iBAATA,SAAS;;MAGX;MACA,IAAMC,MAAM,GAAGC,WAAW,CAACD,MAAa;MAExC,OAAO;QACLE,KAAK,EAAE;UACLC,YAAY,EAAEN,OAAO;UACrBO,cAAc,EAAEL,SAAS;UACzBM,aAAa,EAAEP,QAAQ;UACvBQ,QAAQ,EAAEX,KAAK,CAACY,QAAQ,CAAEC,IAAI,CAACC,MAAM,CAACC,KAAK;UAC3CC,UAAU,EAAEX,MAAM,CAACY;QACrB;MACF,CAAC;IACH;EAAC;EAAA;AAAA;AAGH,eAAenB,OAAO"}
|