flutter_scene-performance
Skill by bdero
Guides developers through speeding up flutter_scene apps that jank or drop frames. It covers measuring the frame budget, finding the over-budget thread, and applying fixes in a fixed order.
Install flutter_scene-performance
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bdero/flutter_scene /tmp/flutter_scene && mkdir -p ~/.claude/skills && cp -r /tmp/flutter_scene/packages/flutter_scene/skills/flutter_scene-performance ~/.claude/skills/flutter-scene-performanceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install flutter_scene-performance in Claude Code
git clone --depth 1 https://github.com/bdero/flutter_scene /tmp/flutter_scene && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/flutter_scene/packages/flutter_scene/skills/flutter_scene-performance ~/.gemini/antigravity-cli/skills/flutter-scene-performanceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install flutter_scene-performance in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps make flutter_scene apps hit their frame budget. flutter_scene is a code-driven 3D scene library for Flutter. The skill argues against guessing at triangle or draw-call counts and instead asks the assistant to measure the real frame. A 60 fps frame has 16.6 ms, and a 120 fps frame has 8.3 ms. That budget is split between the UI thread, which runs Dart and builds the render, and the raster thread, where Impeller draws on the GPU. The skill explains how to read frame timings in profile mode, using the FLUTTER_SCENE_PROFILE define and DevTools. It then gives a fixed order of fixes, including instancing, level of detail, culling, shrinking the post stack, texture consolidation and static shadows. It also covers first-draw pipeline stalls. It is aimed at developers whose scenes stutter or need to run on mobile or web.
Written from the project's SKILL.md and checked against it.
What it can do
- Frame budget measurementExplains how to read per-frame UI and raster times in profile mode using DevTools and the overlay.
- Engine pass timingShows how to enable FLUTTER_SCENE_PROFILE to print per-pass CPU means and maxes.
- Thread diagnosisMaps which thread is over budget to the right group of fixes.
- InstancingCollapses many copies of one mesh into one draw using InstancedMesh and InstancedMeshComponent.
- Level of detailSwaps cheaper meshes as objects shrink on screen using LodComponent and LodLevel.
- CullingCovers Node.frustumCulled, RenderView.cullingPlanes and layer masks to skip off-screen content.
- Post stack reductionLists effects and settings to lower, such as ambient occlusion, depth of field and render scale.
- Texture and material consolidationDescribes TextureAtlas, shared Material instances and MaterialsVariantsComponent to cut state changes.
- Static shadowsExplains Node.shadowStatic for caching shadow maps of content that never moves.
- Pipeline pre-warmingDescribes how to avoid first-draw shader compile stalls by drawing materials ahead of time.
What you need
- Flutter with the flutter_scene package
- Dart
- Flutter DevTools for frame chart reading
Try asking
- Profile why my flutter_scene app drops frames on a phone
- Apply instancing to the foliage in my flutter_scene scene
- Reduce the post-processing cost of my flutter_scene scene on web
Good to know
- There is no runtime stats API such as scene.frameTime.
- Debug-mode timings are not valid for performance measurement.
- A Stopwatch only gives a rough UI-thread number and sees nothing on the raster thread.
- Shadow and depth passes always draw the highest LOD level, so LOD does not reduce shadow cost.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/flutter_scene/skills/flutter_scene-performance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/performance.md14 KB
Alternatives to flutter_scene-performance
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
flutter_scene-performance: common questions
What frame time does flutter_scene need to hit?
The source gives 16.6 ms per frame for 60 fps and 8.3 ms per frame for 120 fps. Missing the budget drops the frame.
Why does the first frame of a flutter_scene app stall?
Each vertex shader, fragment shader and vertex layout combination compiles a pipeline synchronously on its first draw. The source recommends pre-warming materials behind a load screen or intro.
Why should I not profile in debug mode?
The source says debug timings are meaningless for performance because of assertions, no AOT optimization and extra checks. Profile with flutter run --profile instead.
How do I install flutter_scene-performance?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is flutter_scene-performance free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is flutter_scene-performance safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to flutter_scene-performance?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
