performance-optimization

Enforce frame time, bundle size, and Lighthouse performance budgets in Three.js CI workflows.

8|6|Updated May 26, 2025
One-click install
npx skills add https://github.com/Hack23/blacktrigram --skill performance-optimization-hack23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/Hack23/blacktrigram/tree/main/.github/skills/performance-optimization
Command: npx skills add https://github.com/Hack23/blacktrigram --skill performance-optimization-hack23

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers ensure 3D applications meet strict performance targets by guiding how to structure rendering, asset loading, and profiling for consistent frame rates.

Core Features & Use Cases

  • 60fps targets: Enforce frame budgets and identify performance bottlenecks in Three.js scenes.
  • Bundle and asset optimization: Promote code-splitting, lazy loading, and efficient asset usage to keep initial and total bundle sizes within budgets.
  • CI and profiling workflows: Integrate performance checks into CI to maintain Lighthouse scores above the threshold across PRs.
  • Use Case: When integrating new visuals or shaders, use this Skill to keep the rendering pipeline efficient and within budget.

Quick Start

Run the performance-optimization skill to measure frame times, assess bundle sizes, and verify Lighthouse scores in CI.

Frequently Asked Questions about performance-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain 60fps in Three.js scenes with complex shaders?

To maintain 60fps in Three.js, enforce frame budgets by profiling rendering pipelines, identifying bottlenecks, and ensuring memory-safe practices during asset loading and shader integration.

How do I keep Three.js bundle sizes under control during development?

Control Three.js bundle sizes by implementing code-splitting, lazy loading assets, and enforcing budget thresholds to keep both initial and total bundle sizes within specified limits.

Can I integrate Lighthouse score checks into my CI pipeline for WebGL apps?

Yes, you can integrate Lighthouse score checks into your CI pipeline to validate performance thresholds across pull requests, ensuring WebGL environments maintain required scores.

What is the best way to profile real-time Three.js environments for memory leaks?

The best way to profile Three.js memory leaks is applying memory-safe practices during asset disposal and scene management, enforcing memory budgets to prevent bottlenecks in real-time environments.

Does this performance optimization approach work for both frame times and bundle validation?

Yes, this performance optimization approach works for both by enforcing strict budgets for Three.js frame times, controlling bundle sizes, and validating Lighthouse scores in CI workflows.

When should I enforce performance budgets for WebGL rendering pipelines?

Enforce performance budgets for WebGL rendering pipelines when integrating new visuals or shaders, ensuring the rendering pipeline remains efficient and within frame time and bundle limits.