Skip to content

Frame ID incremented on each render #31408

@OndrejSpanel

Description

@OndrejSpanel

Description

I think similar to this.info.autoReset is should be possible to avoid incrementing frame ID during render.

Currently there is a statement:

this.info.render.frame ++

This is used to check if skeleton update is needed in

if (this.updateMap.get(skeleton) != frame)

When someone uses render to implement custom passes, e.g. custom shadow map rendering, currently skeleton is updated in each pass.

Solution

There could be a way to disable auto-increment of this.info.render.frame, perhaps by setting this.info.autoFrame = false, which would be true by default. Only when this flag is not false, the this.info.render.frame ++ would be done.

Alternatives

Currently one can decrement this.info.render.frame after calling render.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions