Skip to main content
Discovery icon for Minecraft Computer Mods Discord server

Minecraft Computer Mods

2,587 Online
7,347 Members
# computercraft3 people

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
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App