 ];
        let currentFrame = 0;
        let frameTimes = [];
        let avgFps = 0;
        const poem = "床前明月光，疑是地上霜。举头望明月，低头思故乡。";
        const uniqueChars = [...new Set(poem.replace(/[^a-zA-Z\u4e00-\u9fa5]/g, ''))];
        let charIndex = 0;

        function resizeCanvas() {
            width = window.innerWidth;
            height = window.innerHeight;
            canvas.width = width;
            canvas.height = height;
        }

        function m