Skip to content

How to measure draw calls? #6259

@vforsh

Description

@vforsh

Version

3.60 beta 12

Description

I'm trying to implement basic counter with draw calls number. I was hoping to do so with the AFTER_FLUSH pipeline event but I always get 1 draw call between PRE_RENDER and POST_RENDER webgl renderer events.

Example Test Code

https://codesandbox.io/s/draw-calls-nyjkdc?file=/src/index.ts

Additional notes

SpectorJS shows 7 draws when I make capture for the provided example with 100 texts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions