Skip to content

Duration of the last update #2495

@j-jorge

Description

@j-jorge

Axmol has a feature to display the FPS counter over the UI via ax::Director::setStatsDisplay(). I would like this function to also display the duration of the last update. Ideally I would like to be able to retrieve this duration too, so I can plot them.

The problem I would like to solve with this is the following. If I add a processing that turns my update from 2 ms to 15 ms, it is a very expensive processing, but I won't see it because the FPS counter would still be at 60. It's only when I'll introduce the next feature that would costs 2 ms (for example) that I would see a drop. Unfortunately it would be quite late.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions