resource-management-audit
CommunityPrevent memory leaks, optimize GPU.
Authorkateusz
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill audits resource management to ensure proper cleanup of OpenGL resources, correct IDisposable implementation, and prevention of memory leaks. It focuses on critical engine-specific concerns like OpenGL context safety, factory ownership patterns, and GPU resource tracking, which are vital for stable and performant game execution.
Core Features & Use Cases
- IDisposable Verification: Checks for correct
IDisposableimplementation, including_disposedflags, resource ID resets, andGC.SuppressFinalize. - OpenGL Context Safety: Enforces the rule that OpenGL calls must never occur in finalizers to prevent crashes.
- Ownership Clarity: Distinguishes between factory-managed (shared) and component-owned resources to prevent premature disposal.
- Memory Leak Detection: Identifies missing disposal paths for resources created in loops or without explicit cleanup.
- Use Case: When investigating a GPU memory leak that occurs after repeatedly loading and unloading scenes, this Skill can audit
MeshandTextureclasses to ensure their OpenGL IDs are correctly deleted and that shared resources are not prematurely disposed by individual components.
Quick Start
Audit the Texture class for proper IDisposable implementation, ensuring GL.DeleteTexture is called correctly and GC.SuppressFinalize is used.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: resource-management-audit Download link: https://github.com/kateusz/GameEngine/archive/main.zip#resource-management-audit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.