Skip to content

Controls: Remove timer-based auto-render system #1165

@swharden

Description

@swharden

This issue tracks discussion/PRs related to removal of the automatic render system.

Problem: After adding data to a Plot in a user control, that control's Render() must be called to display the change. Currently there is an auto-render system which periodically checks the number of plottable objects and calls Render() if it changes. This timer system is prone to memory leaks and may also result in unwanted renders at inopportune times (#1117).

formsPlot1.Plot.AddScatter(xs, ys);
formsPlot1.Render(); // <-- this line is required if automatic renders are disabled

Upgrading: If the auto-render functionality is removed, users who upgrade will have to add the Render() line themselves. To make this more obvious an error message will be displayed on the plot when the debugger is attached if the control is displayed but the user never called Render() on start-up.

image

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