Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/grischaerbe/theatre-continuous-keyframes

Testbed for Theatre.js' ability to continuously set keyframes for realtime recording
https://github.com/grischaerbe/theatre-continuous-keyframes

Last synced: 5 days ago
JSON representation

Testbed for Theatre.js' ability to continuously set keyframes for realtime recording

Awesome Lists containing this project

README

        

# Theatre.js Continuous Keyframes

This repository contains a testbed to experiment with Theatre.js' ability to continuously record keyframes.

Relevant files:

- /src/lib/components/Recorder.svelte

## Install

```bash
pnpm i
```

## Run

```bash
pnpm dev
```

## Usage

1. Open the app in a browser
2. Press "r" to start recording

- This will add a `studio.transaction` and advance the `sheet.sequence`

3. Press "r" again to stop recording

## Expected Behavior

The `sheet.sequence` should advance continuously while recording without hiccups. A keyframe should be added to the sequence every frame.

## Actual Behavior

The `sheet.sequence` does not advance continuously while recording. On a 2019 Macbook Pro 16", Google Chrome will throw these warnings:

```
[Violation] 'requestAnimationFrame' handler took 97ms
```

The hiccups eventually cause a complete standstill of the UI.