optimizing video playback in ComputerCraft
Achieving acceptable video playback requires aggressive Lua optimization, avoiding bit APIs in favor of table lookups or basic math operators.
- A video player running at 144p achieves around 1 million operations per second on a single ComputerCraft machine
- Audio workload is distributed across multiple speakers to split processing and reduce sound noise
- Avoiding ComputerCraft's built-in bit APIs in favor of modulo and addition or table lookups improves execution speed
- Members debated the trade-off between code readability and performance in interpreted languages like Lua
- Implementing LuaJIT in ComputerCraft was suggested, though security attack surfaces and yield timeouts present hurdles


