Low disk space: the port runs without the 300 GB assets stage; document a run-only build (check,shaders,runtime)

オープン
#2,831 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
52/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start with the requirements section of README.md around line 85, which states the 350 GB figure, and with the MIN_FREE_GB table in make_game.py near line 368 to confirm the 30 GB and 300 GB numbers. The preflight check at make_game.py line 456 shows which drive is measured. Done means a maintainer has confirmed the wording, and the README gains a short low-disk paragraph for the check,shaders,runtime run. The optional preflight hint is a separate change that needs its own test.

索引モデルが issue の本文から書いたものです。

説明

README.md:85 says a build needs about 350 GB free for work files. Almost all of that is the assets stage (MIN_FREE_GB = {"shaders": 30, "assets": 300}, make_game.py:368). As far as I can tell, nothing that runs reads the assets stage's output, so a player on a small or nearly full drive could skip it. Is that right? If so, a few lines in the README would help a lot of people.

What I checked (main ec8ec4c9, no game data)
  • The runtime does not read work/assets. There are no hits for assets paths in runtime/src or runtime/shims. The loader maps the package in place: --game-dir defaults to the image's own folder (runtime/src/main.cpp:79), and the D3D12 layer loads translated shaders from LEONIDA_SHADERS. The exported textures, models and audio are for inspection and tooling, such as first_light.py's OBJ.
  • So --stages check,shaders,runtime asks the preflight for 30 GB, not 330. Adding pipelines adds no preflight requirement, and its cache isn't read by the runtime yet (see the finding).
  • --work and --out can sit on different drives (make_game.py:1495-1498). The preflight measures the drive of --work (make_game.py:456).
  • The package can sit on a slower or read-only drive. Reads go to --game-dir, and writes go to --overlay, which defaults to <game-dir>/overlay (main.cpp:85). A read-only package drive therefore needs an explicit --overlay pointing somewhere writable.
  • --wav is not covered by MIN_FREE_GB. The code comment at make_game.py:446-447 says it writes "several times the Ogg Opus size". A low-disk user should leave it off.
  • Two traps for anyone trimming the work folder by hand:
    • Deleting the .s files in work/shaders/dxbc/disasm but keeping the folder gives a "finished" shaders stage with 0 shaders (same finding).
    • A symlinked work/shaders/dxbc/disasm is refused by the realpath check (make_game.py:690-691).
Proposal
  1. Add a short "Low disk space" paragraph to the README's requirements section. It would say that playing needs only check,shaders,runtime (~30 GB), that assets (~300 GB) is optional and only for the asset tools, that --wav should stay off, and that --work/--overlay can move files to other drives.
  2. Optional: have the preflight say this when it fails on the assets stage, e.g. "…or leave assets out with --stages check,shaders,runtime,pipelines; the port doesn't need it to run."

I can open the README PR (docs only) if a maintainer confirms that (1) matches the intent. I can also add the preflight hint (2) with a test. Measured on Linux with btrfs zstd:3: transparent compression cuts the shader outputs further, but I haven't put numbers here because they depend on the filesystem.

Related: #2375 (low-VRAM GPUs). AI-assisted.

主要言語
Python
スター
14.9k
フォーク
1.2k
平均マージ
1時間 58分
マージ済み PR(30日)
40

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ItsNotRexed/Leonida のほかの issue

ItsNotRexed/Leonida の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。