Skip to content

Benchmark: provide render times #1493

@swharden

Description

@swharden

Double-clicking a plottable or calling Plot.Benchmark(true) will display a benchmark message like "rendered in 10 ms (100 Hz)" on the plot, but @anose001 noted in #1491 that there's not an easy way to get this information programmatically.

This issue will track development of a class that can provide the developer with render times, perhaps with options to store the last N render times, and contain methods to get running averages and such.

The current method is:

public bool Benchmark(bool? enable = true)
{
if (enable.HasValue)
settings.BenchmarkMessage.IsVisible = enable.Value;
return settings.BenchmarkMessage.IsVisible;
}

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