Easy way for a Linux process to launch sub-process within the Proton environment

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, linux

調査の方向性

Start from the proton launcher script and how it hands the game to the pressure-vessel container runtime, since that boundary is what the request wants to cross. Read the referenced issue ValveSoftware/Proton#7208 for the existing compatibility complaints, then sketch how a native Linux parent could invoke a Windows child through the same runtime. Done means a documented, supported way to do this without disabling Proton for the depot.

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

説明

Feature Request

Feature Request

I confirm:

  • that I haven't found another request for this feature.
  • that I have checked whether there are updates for my system available that
    contain this feature already.

Description

We're developing a game which has a multi-process architecture. Our main engine is a Linux native .NET 10 process, however the renderer is a separate process based on Unity, which currently only works properly on Windows and thus relies on Proton to run for Linux users.

To achieve this, we distribute our game as Windows Depot, which includes Linux binaries. If launched on Linux, we escape the Proton environment to launch the main .NET 10 process, but keep the renderer launched under Proton. This works fine for the most part, but the .NET 10 process still exists in the Steam Pressure Environment, which has some issues.

We considered an alternative approach, where we'd just launch the native Linux .NET 10 process directly and have it launch the renderer process inside of the Proton environment.

However from our research, we didn't find a way to do this easily - distributing Linux depot seems to just disable Proton outright for our game.

Would it be possible to introduce a mode where a Linux process can still easily launch Windows subprocesses within Proton, while existing outside of its environment?

Justification [optional]

We distribute our game on Steam, which automatically installs and sets up Proton on the machine for the install.

We would like this to just work out of box for our Steam users, without any manual setup on their end.

Also I apologize if this isn't right place to ask this! I wasn't sure where else this request would go.

Risks

Main risk I can see with this is that it's probably pretty niche feature that might require substantial amount of work, so there might not be much benefit to other developers from this.

I do see some benefit in being able to launch Windows processes from otherwise native Linux games. We ourselves bundle a few other Windows-only utilities that we also launch within Proton environment, so it might be useful to others as well, but I do feel that what I'm asking for is still probably pretty niche - but I thought it'd be worth an ask at least.

References [optional]

Here's issue specific for compatibility issues with our game: https://github.com/ValveSoftware/Proton/issues/7208

主要言語
C++
スター
33.4k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

ValveSoftware/Proton のほかの issue

ValveSoftware/Proton の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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