Skip to content

Sims/optimize doom - #470

Draft
suchmememanyskill wants to merge 6 commits into
mainfrom
sims/optimize-doom
Draft

suchmememanyskill wants to merge 6 commits into
mainfrom
sims/optimize-doom

Conversation

@suchmememanyskill

Copy link
Copy Markdown
Contributor

Make doom use less CPU so it can be played during printing

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Safe gameplay during printing requires on-device validation of the buffered simpledrm path’s CPU cost and Klipper timing under concurrent load, which static review cannot establish.

No open issues 🎉

What changed in this PR

This PR aims to reduce Doom’s CPU usage so it can run during printing by optimizing framebuffer scaling and writes.

Changes:

  • Replaces bilinear scaling with nearest-neighbour scaling, using precomputed sampling maps, palette lookup, and repeated-row reuse.
  • Uses buffered writes for simpledrm and combines tightly packed framebuffer rows into a single transfer.
  • Updates the BitBake recipe to apply both optimization patches.
File Description
meta-opencentauri/​recipes-apps/​doom/​files/​0004-buffer-simpledrm-framebuffer-writes.patch Adds buffered simpledrm writes and coalesces packed-row transfers.
meta-opencentauri/​recipes-apps/​doom/​files/​0003-nearest-neighbour-fit-scaling.patch Implements efficient nearest-neighbour scaling while preserving aspect ratio and framebuffer layout handling.
meta-opencentauri/​recipes-apps/​doom/​fbdoom_0.0.1.bb Includes the updated scaling patch and new framebuffer-write patch.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

✅ Build Artifacts

Branch: sims/optimize-doom
Build: 8171284 (merge into main)

Artifact Size
centauri-carbon-1 Firmware 107.43 MB
centauri-carbon-2 Firmware 107.11 MB

View workflow run

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

✅ Build Artifacts

Branch: sims/optimize-doom
Build: 1905611 (merge into main)

Artifact Size
centauri-carbon-1 Firmware 107.43 MB
centauri-carbon-2 Firmware 107.11 MB

View workflow run

This branch was successfully deployed

1 active deployment
approval-given — 19056116 Deployed Nov 4, 2026 by suchmememanyskill via approve #868
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants