Jump to content

GFX Troubleshooting/zh: Difference between revisions

From DDraceNetwork
Darkh (talk | contribs)
Created page with "=== 旧电脑玩家 ==="
Darkh (talk | contribs)
Created page with "至此,您应当可以启动游戏。"
Tags: mobile web edit mobile edit
Line 20: Line 20:
Steam用户也可以在Steam中修改游戏启动选项(打开Steam库,右键点击游戏并选择“属性…”,在“通用”选项卡下,您会看到“启动选项”),输入<code>"gfx_gl_major 1; gfx_backend opengl"</code>(谨记打上"")。
Steam用户也可以在Steam中修改游戏启动选项(打开Steam库,右键点击游戏并选择“属性…”,在“通用”选项卡下,您会看到“启动选项”),输入<code>"gfx_gl_major 1; gfx_backend opengl"</code>(谨记打上"")。


<div lang="en" dir="ltr" class="mw-content-ltr">
如果游戏仍无法启动,您可用软件渲染,也就是完全依赖CPU渲染图形。其弊处在于游戏的FPS会大幅下降,您可使用以下方法优化调整
If all this still does not help, you can still fallback to software rendering. Software rendering means it runs all graphics calls on your CPU instead of your GPU. This results in far less FPS, but might still be playable with some tweaks. Grab the latest 64-bit version of ddnet from https://ddnet.org/downloads. Now download and install 7-Zip. Download the latest mesa for windows from https://github.com/pal1000/mesa-dist-win/releases
#下载:
which should be named like this: mesa3d-xx.y.z-release-mingw.7z.
#*最新64位版《DDNet》( https://ddnet.org/downloads.Download )
Unpack the DDNet client somewhere, unpack mesa. From mesa move all .dll files from the x64 directory inside the DDNet client’s directory. So all .dll files are next to DDNet.exe. If you did everything right it should start the client again, if not try to add
#*7-Zip
</div>
#*Mesa( https://github.com/pal1000/mesa-dist-win/releases )(需下载文件名字如mesa3d-xx.y.z-release-mingw.7z的压缩档)
#解压《DDNet》和Mesa,
#在Mesa中将x64文件夹中的所有.dll文件移至DDNet客户端配置目录里。


<div lang="en" dir="ltr" class="mw-content-ltr">
至此,您应当可以启动游戏。
gfx_backend Vulkan
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
如果没有,请尝试在配置文件settings_ddnet.cfg底部添加<code>gfx_backend Vulkan</code>
to the settings_ddnet.cfg as described above
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="For_users_with_new_computers"></span>
=== For users with new computers ===
=== 新电脑玩家 ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
一般都是驱动程序不正常而生的问题,您可前去相关厂商下载最新的驱动程序(AMD用户[https://www.amd.com/en/support 点击这里],英伟达用户[https://www.nvidia.com/download/index.aspx?lang=en-us 点击这里],英特尔用户[https://www.intel.com/content/www/us/en/download-center/home.html 点击这里]。若您为英特尔用户须留意:[https://www.intel.cn/content/www/cn/zh/support/articles/000058958/graphics.html 此文章])。如果游戏仍无法启动,请尝试使用Vulkan,编辑位于[[FAQ/zh#《DDNet》的配置文件,配置目录在哪?|配置目录]]里的配置文件settings_ddnet.cfg,在文件底部添加:
Usually this is caused by bad drivers. You should check the manufacturers website for the newest drivers
([https://www.amd.com/en/support AMD], [https://www.nvidia.com/download/index.aspx?lang=en-us NVIDIA], [https://www.intel.com/content/www/us/en/download-center/home.html Intel]). For Intel also note this article: [https://www.intel.com/content/www/us/en/support/articles/000058958/graphics.html Warning: Installing This Graphics Driver From Intel May Overwrite Customizations From Your Computer Manufacturer (OEM)].
If it’s still crashing you should try to use vulkan
Do this by editing settings_ddnet.cfg that is located inside the config directory ([[Special:MyLanguage/FAQ#Where_is_the_DDNet_config,_config_directory_or_save_directory?|FAQ#Where_is_the_DDNet_config,_config_directory_or_save_directory?]]
Make sure no DDNet Client is running (best is you even check in the taskmanager)
To the bottom of this file add:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 13:34, 3 June 2023

本條目旨在解決因顯卡而生的各種故障問題


遊戲無法啟動

這種情況可分為兩類,其一為舊電腦(2015年前)玩家,其二為新電腦玩家。


舊電腦玩家

一般來說,您只需要強制使用OpenGL 1.x,就能正常啟動遊戲。要更改OpenGL,首先您需確保電腦沒有運行DDNet客戶端,然後編輯位於配置目錄里的配置文件settings_ddnet.cfg,在文件底部添加:

 gfx_gl_major 1
gfx_backend opengl

Steam用戶也可以在Steam中修改遊戲啟動選項(打開Steam庫,右鍵點擊遊戲並選擇「屬性…」,在「通用」選項卡下,您會看到「啟動選項」),輸入"gfx_gl_major 1; gfx_backend opengl"(謹記打上"")。

如果遊戲仍無法啟動,您可用軟件渲染,也就是完全依賴CPU渲染圖形。其弊處在於遊戲的FPS會大幅下降,您可使用以下方法優化調整

  1. 下載:
  2. 解壓《DDNet》和Mesa,
  3. 在Mesa中將x64文件夾中的所有.dll文件移至DDNet客戶端配置目錄里。
至此,您应当可以启动游戏。

如果沒有,請嘗試在配置文件settings_ddnet.cfg底部添加gfx_backend Vulkan


新電腦玩家

一般都是驅動程序不正常而生的問題,您可前去相關廠商下載最新的驅動程序(AMD用戶點擊這裡,英偉達用戶點擊這裡,英特爾用戶點擊這裡。若您為英特爾用戶須留意:此文章)。如果遊戲仍無法啟動,請嘗試使用Vulkan,編輯位於配置目錄里的配置文件settings_ddnet.cfg,在文件底部添加:

gfx_backend Vulkan

If you are a steam user, you can also pass it as steam start parameter by writing 「gfx_backend Vulkan」 (INCLUDING the 「) (rightclick ddnet in steam, properties -> start arguments


Some text is invisible with the Vulkan backend

Vulkan graphics bug with missing text

Users with an AMD card reported this and it’s caused by AMD driver from 2021. Just visit and download a driver from march 2022 or newer from https://www.amd.com/en/support. If there is no driver from 2022 you should switch back to OpenGL, you sadly cannot use Vulkan then, inside the client just paste gfx_gl_major 3;gfx_gl_minor 3; gfx_backend opengl in the F1 console and restart the client.


Some text looks broken

Razer Cortex-Overlay makes text unreadable

Some users reported broken text, e.g. text that is unreadable as if the text was streetched. This is caused by external overlays. Most people with this problem reported they used the "Razer Cortex" overlay. Disabling/uninstalling fixed the problem.


The client randomly crashes with an Intel GPU

Usually DDNet has a strong fallback system for Intel GPUs on Windows as they often caused bugs with OpenGL 2.1+ If you have a recent Intel GPU you can simply switch to Vulkan in the graphic settings inside the client. Else type gfx_gl_major 2;gfx_gl_minor 0; gfx_backend opengl in the F1 console of the client and restart.


Absolutely nothing helps

If you are sure you did everything correct and nothing helped report this bug on ddnet’s discord #bugs channel. You are the first encountering this situation. The only known modern GPU that caused problems is an AMD ryzen 3 2200g, if you don’t use the AMD beta drivers (confirmed with Adrenalin 22.5.1 Recommended (WHQL)) You can simply switch to OpenGL backend, see #Some text is invisible with the Vulkan backend. Else you have to accept to use an OpenGL 1.x backend as described in #For users with older computers. It’s also quite possible that the problem is not GFX related. Try to disable your Anti-Virus for DDNet, make sure you use a recent Windows/Linux/macOS version. Always try 64-bit versions first as they are more tested.


Some ingame tiles are invisible or look broken

You are probably an user with an old GPU, just see #For users with older computers for the solution.