让我们谈谈同时流式传输和玩游戏时的帧速率。除非您正在运行非常好的 PC 或两台PC 流设置(PC stream setup),否则尝试在流上运行最新游戏时可能会遇到一些问题。
我们将使用多种技术解决此问题,您也可以按照自己的流设置的每个步骤进行操作。请(Please)理解,在某些情况下,唯一的解决方案是购买更好的硬件,但无论如何我都会尽力指导您提高 PC 的性能。
对于本指南,我将使用OBS进行录制,这可以说是目前最好的直播软件(streaming software)。它可以免费下载,互联网上有大量指南可以帮助您入门。
发现问题
首先,请加载您的游戏并以带宽测试模式(test mode)启动您的流。我们需要获取有关您计算机的一些详细信息,以确定您以较低帧速率(frame rate)运行的原因。打开游戏并开始直播后,请按照以下步骤操作。
- Alt+Tab 从您的游戏中转到您的桌面(desktop)。
- 按Ctrl + Shift + Esc打开任务管理器。
- 查看您的CPU 和 GPU 使用情况(CPU and GPU usage )并记下它。
如果您没有达到 100 % usage,请更新您的驱动程序、更新OBS并按照本指南优化您的设置。(optimizing your settings.)
如果您的CPU 或 GPU(CPU or GPU)接近或 100 % usage,这就是您的帧速率(frame rate)受到影响的原因。您可能会注意到游戏中的帧率下降,或者您的观众可能会注意到流中的帧率(frame rate)下降。
有一些方法可以降低您的使用率,一旦您这样做,就有可能解决您遇到的任何帧速率问题。下面我们来看看这些方法。
如何在流式传输时减少CPU 和 GPU 使用率(CPU and GPU Usage)
您可以做的最重要的事情是关闭所有在后台使用CPU的程序。(CPU)使用Ctrl + Shift +
Esc 打开任务管理器(Task Manager)并单击CPU 选项卡(CPU tab)
将告诉您哪些应用程序使用最多的处理能力。
在我的例子中,我们可以看到我大约 50% 的
CPU被流媒体不需要的应用程序使用。我们可以关闭这些应用程序来为我们的流释放CPU资源。(CPU power)如果需要打开某些应用程序,例如,如果您在流式传输时使用Chrome播放音乐(music whilst streaming),您可以切换到CPU密集度较低的选项。例如,您可以使用Spotify 桌面(Spotify desktop)应用程序,或者切换到打开较少标签的低配置浏览器。(profile browser)
一旦你关闭了不必要的应用程序,接下来你可以做的就是检查游戏设置并减少图形。寻找可能增加CPU使用率的选项,例如渲染距离(render distance)。通过降低这些设置,您的 PC 将释放更多的处理能力。
我可以给你的一个非常重要的提示是限制游戏中的帧速率(frame rate)。不同(Different)的游戏对此会有不同的选择。有些需要在游戏启动(game launch)选项中使用特定命令,有些则可能有游戏内FPS 上限(FPS cap)。
如果您没有帧速率限制(frame rate limit),游戏将尝试推送尽可能多的帧,这意味着 PC 将使用其所有CPU 和 GPU 能力(CPU and GPU power)来尝试保持更高的帧速率(frame rate)。在许多情况下,这不是必需的。最好将您的帧速率(frame rate)限制在一个合理的水平,这样您的PC(PC isn)就不会过度工作。这将为您的流释放一些处理能力(processing power)
,并帮助您保持流畅、一致的帧速率。
这听起来像是一个奇怪的修复,但它确实有效。以我的经验,当我的观众抱怨卡顿的表现时,这是解决我问题的最大方法。
要找到合适的帧速率(frame rate),请在流式传输时运行游戏(game whilst streaming)并查看您获得的帧。您可以使用FRAPS 之(FRAPS)类的程序来捕获帧速率(frame rate)。注意平均值,然后选择略低于该平均值的帧速率限制。(frame rate limit)如果您只有 60Hz 的显示器,您应该简单地将帧速率(frame rate)限制在 60fps 左右,因为您将无法看到更高的帧。
概括
我希望本指南可以帮助您解决流式传输(whilst streaming)时可能遇到的任何帧速率问题。为了快速提醒,我在本指南中提到了三个提示。
- 关闭不必要的后台应用程序
- 减少游戏内图形设置
- 限制帧速率
如果您的CPU 或 GPU(CPU or GPU)仍然达到 100% 的使用率,唯一的解决方案就是升级您的系统。如果您对本指南有任何疑问,请与我联系,我很乐意为您提供帮助。
How to Get Better Frame Rates When Streaming and Gaming Simultaneously
Let’s talk about frame rates when streaming
and playing games at the same timе. Unless you are running a very good PC or a
two PC stream setup, you may come acrоss some issues trying to run the latest
games on your stream.
We will be resolving this issue with a number
of techniques, and you can follow along with each step on your own streaming
setup too. Please understand that in some cases, the only solution will be to
buy better hardware, but I will try to guide you through boosting more
performance out of your PC no matter what.
For this guide, I will be using OBS to record,
which is arguably the best live streaming software right now. It’s free to
download and there are plenty of guides on the internet to help you get
started.
Find the Problem
To start off, please load up your game and start your stream in bandwidth test mode. We will need to get some details about your computer to determine why you are running at a lower frame rate. Once you have your game open and your stream has started, follow the steps below.
- Alt+Tab from your game and go to your desktop.
- Press Ctrl + Shift + Esc to open the Task Manager.
- Take a look at your CPU and GPU usage and make a note of
it.
If you aren’t reaching 100% usage, please update your drivers, update OBS, and follow this guide for optimizing your settings.
If your CPU or GPU are reaching close to or
100% usage, that is why your frame rate is suffering. You may notice frame
drops in your game, or perhaps your viewers will notice frame rate drops in the
stream.
There are some methods to lower your usage and
once you do, that could potentially resolve any frame rate issues you have.
Let’s take a look at these methods below.
How to Reduce CPU and GPU Usage While Streaming
The most important thing you can do to begin
with is to close down any programs that are using CPU in the background.
Opening Task Manager with Ctrl + Shift +
Esc and clicking on the CPU tab
will tell you which apps are using the most processing power.
In my case, we can see that around 50% of my
CPU is being used by apps not necessary for streaming. We can close down these
apps to free up CPU power for our stream. If some apps need to be open, for
example, if you use Chrome for music whilst streaming, you could switch to a
less CPU intensive option. You could use the Spotify desktop app, for example,
or switch to a low profile browser with less tabs open.
Once you have closed down unnecessary apps,
the next thing you can do is go through the game settings and reduce the
graphics. Look for options that may increase CPU usage like render distance.
With these settings lower, your PC will free up more processing power.
One very important tip I can give you is to
limit the frame rate in your game. Different games will have different options
for this. Some will require specific commands in the game launch options,
others may have an in-game FPS cap.
If you don’t have a frame rate limit, the game
will try to push as many frames as possible, which means the PC will be using
all of its CPU and GPU power to try to maintain a higher frame rate. In many
cases, this isn’t needed. It’s best to cap your frame rate at a reasonable
level so that your PC isn’t overworked. This will free up some processing power
for your stream and it will help you to maintain a smooth, consistent frame
rate.
It sounds like a strange fix, but it really
does work. In my experience, it was the biggest solution to my problem when my
viewers complained about stuttery performance.
To find a suitable frame rate, run the game whilst streaming and see what frames you get. You can use a program like FRAPS to capture your frame rate. Pay attention to the average, and then choose a frame rate limit slightly below that. If you only have a 60Hz display, you should simply cap your frame rate to around 60fps because you won’t be able to see any higher frames.
Summary
I hope that this guide has helped you to
resolve any frame rate issues you may have whilst streaming. For a quick
reminder, I mentioned three tips in this guide.
- Close down unnecessary background
apps
- Reduce in-game graphics settings
- Limit your frame rate
If your CPU or GPU are still hitting 100%
usage, the only solution would be to upgrade your system. If you have any
questions about this guide, please reach out to me and I’ll be happy to help.