   ctx.textAlign = 'center';
            ctx.fillText(body.name, x, y + body.radius + 15);
        }

        // ... existing code ...
        let lastTime = 0;
        let fps = 0;
        let frameCount = 0;
        let startTime = performance.now();
        let earthDays = 0;

        function drawFPS() {
            const now = performance.now();
            const delta = now - lastTime;
            lastTime = now;
            fps = Math.round(1000 / delta);

            ctx.fillStyle = 'rgba(255, 255, 