background-color: rgba(255, 255, 255, 0.5);
            padding: 5px;
            border-radius: 5px;
        }
    </style>
</head>

<body>
    <canvas id="canvas"></canvas>
    <div id="fps-counter"></div>

    <script>
        // 获取canvas元素
        const canvas = document.getElementById('canvas');
        const ctx = canvas.getContext('2d');
        const fpsCounter = document.getElementById('fps-counter');

        // 设置canvas全屏
        canvas.width = window.innerWidth;
        canvas.he