cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

gpu profiler.

Open bluesky013 opened this issue 2 years ago • 3 comments

Re: # 企业微信截图_16969268225919

Changelog

  • deprecate occlusion query.
  • gpu profiler.

Continuous Integration

This pull request:

  • [x] needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • [ ] does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • [ ] changes public API, and have ensured backward compatibility with deprecated features.
  • [ ] affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • [ ] affects file structure of the build package or build configuration which requires user project upgrade.
  • [ ] introduces breaking changes, please list all changes, affected features and the scope of violation.

bluesky013 avatar Sep 22 '23 09:09 bluesky013

Interface Check Report

! WARNING this pull request has changed these public interfaces:

@@ -8738,8 +8738,19 @@
             MOVE = 3,
             RAYTRACE = 4,
             PRESENT = 5
         }
+        export enum PipelineStatisticFlagBit {
+            NONE = 0,
+            IA_VERTICES = 1,
+            IA_PRIMITIVES = 2,
+            VS_INVOCATIONS = 4,
+            CLIP_INVOCATIONS = 8,
+            CLIP_PRIMITIVES = 16,
+            FS_INVOCATIONS = 32,
+            CS_INVOCATIONS = 64,
+            ALL = 127
+        }
         export type BufferUsage = BufferUsageBit;
         export type BufferFlags = BufferFlagBit;
         export type MemoryAccess = MemoryAccessBit;
         export type MemoryUsage = MemoryUsageBit;
@@ -8749,8 +8760,9 @@
         export type ShaderStageFlags = ShaderStageFlagBit;
         export type AccessFlags = AccessFlagBit;
         export type DynamicStateFlags = DynamicStateFlagBit;
         export type ClearFlags = ClearFlagBit;
+        export type PipelineStatisticFlags = PipelineStatisticFlagBit;
         export class Size {
             x: number;
             y: number;
             z: number;
@@ -8777,13 +8789,14 @@
             maxComputeSharedMemorySize: number;
             maxComputeWorkGroupInvocations: number;
             maxComputeWorkGroupSize: Size;
             maxComputeWorkGroupCount: Size;
+            timestampPeriod: number;
             supportQuery: boolean;
             clipSpaceMinZ: number;
             screenSpaceSignY: number;
             clipSpaceSignY: number;
-            constructor(maxVertexAttributes?: number, maxVertexUniformVectors?: number, maxFragmentUniformVectors?: number, maxTextureUnits?: number, maxImageUnits?: number, maxVertexTextureUnits?: number, maxColorRenderTargets?: number, maxShaderStorageBufferBindings?: number, maxShaderStorageBlockSize?: number, maxUniformBufferBindings?: number, maxUniformBlockSize?: number, maxTextureSize?: number, maxCubeMapTextureSize?: number, maxArrayTextureLayers?: number, max3DTextureSize?: number, uboOffsetAlignment?: number, maxComputeSharedMemorySize?: number, maxComputeWorkGroupInvocations?: number, maxComputeWorkGroupSize?: Size, maxComputeWorkGroupCount?: Size, supportQuery?: boolean, clipSpaceMinZ?: number, screenSpaceSignY?: number, clipSpaceSignY?: number);
+            constructor(maxVertexAttributes?: number, maxVertexUniformVectors?: number, maxFragmentUniformVectors?: number, maxTextureUnits?: number, maxImageUnits?: number, maxVertexTextureUnits?: number, maxColorRenderTargets?: number, maxShaderStorageBufferBindings?: number, maxShaderStorageBlockSize?: number, maxUniformBufferBindings?: number, maxUniformBlockSize?: number, maxTextureSize?: number, maxCubeMapTextureSize?: number, maxArrayTextureLayers?: number, max3DTextureSize?: number, uboOffsetAlignment?: number, maxComputeSharedMemorySize?: number, maxComputeWorkGroupInvocations?: number, maxComputeWorkGroupSize?: Size, maxComputeWorkGroupCount?: Size, timestampPeriod?: number, supportQuery?: boolean, clipSpaceMinZ?: number, screenSpaceSignY?: number, clipSpaceSignY?: number);
             copy(info: Readonly<DeviceCaps>): DeviceCaps;
         }
         export class DeviceOptions {
             enableBarrierDeduce: boolean;
@@ -9568,8 +9581,15 @@
              * @param usage The GFX texture usage.
              * @param flags The GFX texture create flags.
              */
             getMaxSampleCount(format: Format, usage: TextureUsage, flags: TextureFlags): SampleCount;
+            /**
+             * @en Get supported pipeline statistic flags by device query.
+             * @zh 获取可通过设备查询获取的管线硬件数据类型
+             * @param flags Pipeline statistic flag to be tested.
+             * @param outFlags Pipeline statistic flag test result.
+             */
+            getSupportedPipelineStatisticFlags(flags: Readonly<PipelineStatisticFlags>, outFlags: PipelineStatisticFlags): number;
         }
         export class DefaultResource {
             constructor(device: Device);
             getTexture(type: TextureType): Texture | null;

github-actions[bot] avatar Sep 22 '23 09:09 github-actions[bot]

@bluesky013, Please check the result of run test cases:

  • Test Platform: PR-Test
  • Editor Version:
  • Task Result:
  • Task URL: http://cctest.cocos.org/#/reportview/PR-TEST/965b3897-510a-4135-8169-6a4f9039c2e1/-1
  • GitHub Action: https://github.com/cocos/cocos-engine/actions/runs/6464016238

Task Details

github-actions[bot] avatar Oct 10 '23 02:10 github-actions[bot]

@bluesky013, Please check the result of run test cases:

  • Test Platform: PR-Test
  • Editor Version:
  • Task Result:
  • Task URL: http://cctest.cocos.org/#/reportview/PR-TEST/621a80cf-252a-47c3-bda2-e958d5f25efc/-1
  • GitHub Action: https://github.com/cocos/cocos-engine/actions/runs/6466827413

Task Details

github-actions[bot] avatar Oct 10 '23 09:10 github-actions[bot]