and redraws the UI at regular intervals.</p>
<h3 id="example-simple-game-loop">Example: Simple Game Loop</h3>
<pre><code class="lang-csharp">public class GamePage : SkiaLayout
{
    private bool _running;
    private Timer _timer;
    private int _playerX = 100;
    private int _playerY = 100;

    public GamePage()
    {
        // Start the game loop
        _running = true;
        _timer = new Timer(OnTick, null, 0, 16); // ~60 FPS
    }

    private void OnTick(object state)
    {
        if (!_running