optimize

Profile hot-path code with IR_PROFILE macros and easy_profiler to identify CPU- and GPU-bound hotspots.

8|Updated Oct 11, 2023
One-click install
npx skills add https://github.com/jakildev/IrredenEngine --skill optimize-jakildev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/jakildev/IrredenEngine/tree/main/.claude/skills/optimize
Command: npx skills add https://github.com/jakildev/IrredenEngine --skill optimize-jakildev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The optimize skill helps catch performance regressions early by profiling hot-path code and suggesting engine-specific optimizations to meet real-time goals.

Core Features & Use Cases

  • Instrument hot-path entry points with IR_PROFILE macros to gather timing data.
  • Differentiate CPU vs GPU hotspots and provide actionable changes.
  • Guide profiling sessions before and after changes; produce a compact report of improvements.

Quick Start

Run the optimize workflow on a hot-path change and review the profiler outputs to confirm improvements.

Frequently Asked Questions about optimize

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

FAQPage Schema
How do I profile per-frame hot-path code to identify CPU and GPU hotspots?

To profile per-frame hot-path code, you instrument entry points with IR_PROFILE macros and use the easy_profiler tool to collect timing data. This process differentiates CPU-bound and GPU-bound hotspots to help optimize engine performance and reclaim FPS.

What is the best way to optimize render pipelines and system ticks for real-time performance?

The best way to optimize render pipelines and system ticks is to profile hot-path code using IR_PROFILE macros and easy_profiler. This identifies CPU and GPU bottlenecks and proposes actionable engine-specific fixes to meet real-time goals.

How do I validate performance improvements before and after optimizing a hot path?

You validate performance improvements by running a profiling session before and after making changes to your hot-path code. The workflow produces a compact report comparing before and after measurements to confirm the optimizations reclaimed FPS.

Does this profiling workflow work with audio and video processing hot paths?

Yes, this profiling workflow works with audio and video processing hot paths. It applies to system ticks, render pipelines, and math hot paths to identify CPU- and GPU-bound hotspots and propose fixes for real-time engine performance.

Why should I instrument hot-path entry points with IR_PROFILE macros?

You should instrument hot-path entry points with IR_PROFILE macros to accurately gather timing data across frames. This data is leveraged by the easy_profiler tool to pinpoint specific hotspots and catch performance regressions early.

What is the limitation of profiling engine hot paths without before and after measurements?

Without before and after measurements, profiling engine hot paths cannot validate that proposed fixes actually reclaim FPS. The workflow requires comparing compact profiler outputs to confirm that CPU and GPU hotspots have been successfully resolved.