Rendering/RenderLoop.cs

Avalonia · src/Avalonia.Base/Rendering/RenderLoop.cs · csharp · MIT
ui, tag:knn-classified

Core render loop implementation for Avalonia, managing render tasks and timers.

// Source: https://github.com/AvaloniaUI/Avalonia | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Collections.Generic;
using System.Threading;
using Avalonia.Logging;
using Avalonia.Metadata;
using Avalonia.Threading;

namespace Avalonia.Rendering
{
    /// <summary>
    /// Provides factory methods for creating <see cref="IRenderLoop"/> instances.
    /// </summary>
    [PrivateApi]
    public static class RenderLoop
    {
        /// <summary>
        /// Creates an <see cref="IRenderLoop"/> from an <see cref="IRenderTimer"/>.
        /// </summary>
        public static IRenderLoop FromTimer(IRenderTimer timer) => new DefaultRenderLoop(timer);
    }

    /// <summary>
    /// Default implementation of the application render loo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key