scene-runtime-and-crdt

Analyze Decentraland scene runtime internals, including V8/ClearScript, CRDT protocol, and JavaScript modules.

23|17|Updated Apr 16, 2023
One-click install
npx skills add https://github.com/decentraland/unity-explorer --skill scene-runtime-and-crdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scene-runtime-and-crdt
Source: https://github.com/decentraland/unity-explorer/tree/main/.claude/skills/scene-runtime-and-crdt
Command: npx skills add https://github.com/decentraland/unity-explorer --skill scene-runtime-and-crdt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides deep insights into the internal workings of the Decentraland scene runtime, focusing on the V8/ClearScript engine, CRDT protocol, and JavaScript module system, enabling developers to debug and enhance scene performance and stability.

Core Features & Use Cases

  • Scene Runtime Internals: Understand the V8/ClearScript engine, JS module system, and scene lifecycle.
  • CRDT Protocol: Work with CRDTProtocol and CRDTWorldSynchronizer for state synchronization.
  • Threading & ECS: Manage MultiThreadSync for ECS access and understand the threading model.
  • Use Case: When a scene experiences unexpected behavior or crashes, this Skill helps diagnose issues related to JavaScript execution, CRDT synchronization errors, or ECS data corruption.

Quick Start

Analyze the threading model for scene runtime and CRDT synchronization.

Frequently Asked Questions about scene-runtime-and-crdt

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

FAQPage Schema
How does the Decentraland scene runtime handle CRDT synchronization?

The Decentraland scene runtime handles CRDT synchronization using the CRDTProtocol and CRDTWorldSynchronizer to manage state transitions and ensure consistent scene state across the network.

Why does my Decentraland scene crash during ECS state transitions?

Decentraland scene crashes during ECS state transitions often stem from improper multi-threaded access; diagnosing requires analyzing the MultiThreadSync threading model and JavaScript execution errors.

How do I debug JavaScript execution and module systems in the V8 scene runtime?

To debug JavaScript execution and module systems in the V8 scene runtime, you must analyze the V8/ClearScript engine internals and trace scene lifecycle management operations for unexpected behavior.

Can I manage multi-threaded ECS access within the Decentraland scene runtime?

Yes, you can manage multi-threaded ECS access within the Decentraland scene runtime by utilizing the MultiThreadSync mechanism to safely handle concurrent data operations and prevent ECS corruption.

What is the best way to implement new JavaScript API modules for Decentraland scenes?

The best way to implement new JavaScript API modules for Decentraland scenes involves modifying the scene runtime internals by leveraging the V8 engine and understanding the existing JavaScript module system architecture.

When do I need to analyze the threading model in Decentraland scene runtime?

You need to analyze the threading model in the Decentraland scene runtime when diagnosing unexpected behavior, debugging scene state transitions, or implementing modifications to CRDT synchronization protocols.