GPU 和渲染器设置不可用或默认值错误

Open
#3,864 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp, java, linux, macos
Domain
desktop

Research direction

Start with the platform split in PCL.Platform/PlatformServiceRegistration.cs (lines 51-62), then read LinuxLaunchEnvironmentService.cs for the DRI_PRIME default and the d3d12 log-only branch. The GPU checkbox and DirectX12 option are in PCL.Launcher/Views/Pages/Setup/PageSetupLaunch.axaml and PageInstanceSetup.axaml; the macOS renderer skip is in PCL.Launcher.Core/Launch/ArgumentsJvm.cs. Done means platform-specific settings are hidden or defaulted correctly per OS, with no Windows Mesa jar downloaded on Linux/macOS. The issue asks for a broad refactor, so it needs maintainer design input first.

Written by the indexing model from the issue text.

Description

  • PCL.Core/App/Config.cs:502 的 GPU 偏好默认是 true
  • PCL.Launcher/Views/Pages/Setup/PageSetupLaunch.axaml:441-445 在所有平台显示 GPU 复选框
  • PCL.Platform/Linux/LinuxLaunchEnvironmentService.cs:10-16 默认给每个游戏加 DRI_PRIME=1
  • PCL.Platform/PlatformServiceRegistration.cs:51-62 给 Linux/macOS 注册 UnsupportedGpuPreferenceService,给 Windows/macOS 注册 UnsupportedLaunchEnvironmentService
  • PCL.Launcher/Views/Pages/Setup/PageSetupLaunch.axaml:358-361 和 PageInstanceSetup.axaml:406-409 无条件提供 DirectX12(d3d12)
  • PCL.Platform/Linux/LinuxLaunchEnvironmentService.cs:33-36 对 d3d12 只记录日志
  • PCL.Launcher.Core/Launch/ArgumentsJvm.cs:137 在 macOS 上直接跳过渲染器
  • PCL.Launcher.Core/Minecraft/Library/Net.cs:111-137 在 Linux/macOS 仍可能下载 Windows Mesa Loader jar

进行平台化重构与抽象。

Dominant language
C#
Stars
4.3k
Forks
148
Avg merge
1d 6h
Merged PRs (30d)
64

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PCL-Community/PCL-CE

All issues in PCL-Community/PCL-CE

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.