admin管理员组

文章数量:1516870

注:机翻。未校。


How I cut GTA Online loading times by 70%

t0st

2021-02-28

GTA Online. for its slow loading times. Having picked up the game again to finish some of the newer heists I was shocked (/s) to discover that it still loads just as slow as the day it was released 7 years ago.
侠盗猎车手在线模式。因其缓慢的加载时间而臭名昭著。再次拿起游戏以完成一些较新的抢劫后,我震惊地 (/s) 发现它的加载速度仍然和 7 年前发布的那一天一样慢。

It was time. Time to get to the bottom of this.
是时候了。是时候深入了解这个问题了。

Recon

First I wanted to check if someone had already solved this problem. Most of the results I found pointed towards anecdata about that it needs to load so long, stories on how the is rubbish (not saying that it isn’t), some elaborate ways of and a couple of mods that allowed skipping the startup R* logo video. Some more reading told me we could save a whopping 10-30 seconds with these combined!
首先,我想检查是否有人已经解决了这个问题。我发现的大多数结果都指向关于游戏如何如此复杂以至于需要加载如此之长时间的轶事数据,关于 p2p 网络架构如何垃圾的故事(并不是说它不是),一些精心设计的加载到故事模式和之后的单独会话的方法,以及一些允许跳过启动 R* 标志视频的模组。更多的阅读告诉我,我们可以用这些结合起来节省高达 10-30 秒的时间!

Meanwhile on my PC… 同时在我的电脑上…

Benchmark

Story mode load time: ~1m 10s
Online mode load time: ~6m flat
Startup menu disabled, time from R* logo until in-game (social club login time isn’t counted).
Old but decent CPU: AMD FX-8350
Cheap-o SSD: KINGSTON SA400S37120G
We have to have RAM: 2x Kingston 8192 MB (DDR3-1337) 99U5471
Good-ish GPU: NVIDIA GeForce GTX 1070

I know my setup is dated but what on earth could take 6x longer to load into online mode? I couldn’t measure any difference using the story-to-online loading technique . Even if it did work the results would be down in the noise.
我知道我的设置已经过时了,但到底什么可能需要 6 倍的时间才能加载到在线模式?我无法像其他人在我之前发现的那样,使用故事到在线加载技术来衡量任何差异。即使它确实有效,结果也会在噪音中下降。

I Am (Not) Alone

If is to be trusted then the issue is widespread enough to mildly annoy more than 80% of the player base. It’s been 7 years R*!
如果这项民意调查是可信的,那么这个问题就足够普遍,足以轻微地惹恼超过80%的玩家群。已经 7 年了 R*!

Looking around a bit to find who are the lucky ~20% that get sub 3 minute load times I came across with high-end gaming PCs and an online mode load time of about 2 minutes. I would kill hack for a 2 minute load time! It does seem to be hardware-dependent but something doesn’t add up here…
环顾四周,找出谁是幸运的 ~20% 的加载时间低于 3 分钟,我遇到了一些高端游戏 PC 的基准测试,在线模式加载时间约为 2 分钟。我会在 2 分钟的加载时间内杀死 hack!它似乎确实依赖于硬件,但这里没有加起来…

How come their story mode still takes near a minute to load? (The M.2 one didn’t count the startup logos btw.) Also, loading story to online takes them only a minute more while I’m getting about five more. I know that their hardware specs are a lot better but surely not 5x better.
为什么他们的故事模式仍然需要将近一分钟才能加载?(顺便说一句,M.2 没有计算启动徽标。此外,将故事加载到网上只需要多一分钟,而我还有大约五分钟。我知道他们的硬件规格要好得多,但肯定不是 5 倍好。

Highly accurate measurements

Armed with such powerful tools as the Task Manager I began to investigate what resources could be the bottleneck.
有了任务管理器等强大的工具,我开始调查哪些资源可能是瓶颈。

After taking a minute to load the common resources used for both story and online modes (which is near on par with high-end PCs) GTA decides to max out a single core on my machine for four minutes and do nothing else.
在花了一分钟加载用于故事和在线模式的常用资源(这与高端 PC 几乎不相上下)之后,GTA 决定将我的机器上的单个内核最大化四分钟,而不做任何其他事情。

Disk usage? None! Network usage? There’s a bit, but it drops basically to zero after a few seconds (apart from loading the rotating info banners). GPU usage? Zero. Memory usage? Completely flat…
磁盘使用情况?没有!网络使用情况?有一点,但几秒钟后它基本上下降到零(除了加载旋转信息横幅)。GPU 使用情况?零。内存使用情况?完全平坦…

What, is it mining crypto or something? I smell code. Really bad code .
什么,是挖加密货币还是什么?我闻到代码的味道。真的糟糕的代码。

Single thread-bound

While my old AMD CPU has 8 cores and it does pack a punch, it was made in the olden days. Back when AMD’s was way behind Intel’s. This might not explain all of the load time differences but it should explain most of it.
虽然我的旧 AMD CPU 有 8 个核心,它确实很有冲击力,但它是在过去制造的。当AMD的单线程性能远远落后于英特尔时。这可能无法解释所有的加载时间差异,但应该可以解释大部分时间差异。

What’s odd is that it’s using up just the CPU. I was expecting vast amounts of disk reads loading up resources or loads of network requests trying to negotiate a session in the p2p network. But this? This is probably a bug.
奇怪的是,它只占用了CPU。我预计会进行大量的磁盘读取,从而加载资源或尝试在 p2p 网络中协商会话的网络请求负载。但是这个?这可能是一个错误。

Profiling

Profilers are a great way of finding CPU bottlenecks. There’s only one problem - most of them rely on instrumenting the source code to get a perfect picture of what’s happening in the process. And I don’t have the source code. Nor do I need microsecond-perfect readings - I have 4 minutes’ worth of a bottleneck.
分析器是查找 CPU 瓶颈的好方法。只有一个问题 - 他们中的大多数都依赖于检测源代码来完美地了解过程中发生的情况。而且我没有源代码。我也不需要微秒级的完美读数 - 我有 4 分钟的瓶颈。

Enter stack sampling: for closed source applications there’s only one option. Dump the running process’ stack and current instruction pointer’s location to build a calling tree in set intervals. Then add them up to get statistics on what’s going on. There’s only one profiler that I know of (might be ignorant here) that can do this on Windows. And it hasn’t been updated in over 10 years. It’s ! Someone, please give this project some love

本文标签: 分钟系统编程

更多相关文章

Office 2016简体中文官方正版镜像,一步到位的授权安装

21天前

Office 2016 简体中文批量授权版镜像下载(含Visio、Project)此处整理了office2016 VOL大客户批量授权版下载资源,包含了office2016 32位+64位版本、project2016 32

在您的电脑上安装Microsoft Office 2016中文镜像版

21天前

在使用上,零售版和批量授权版并没有区别,只是授权方式方面的区别,相对而言,VOL 版的更容易激活一些,其他并没有什么区别了。 有需要的可以在下面下载:(以下均是 VL 版)版本:Office 2016 Pro Pl

免费Office 2016安装指南,让你工作学习更高效

21天前

Office 2016 安装系统资源下载 资源描述 本仓库提供Office 2016正式版的安装资源下载。Office 2016是一款功能强大的办公软件套件,支持Windows 7、Windows 8和Windows

正版Office2016大集结,Microsoft Office Professional Plus 2016完整版,CD原装复制!

21天前

哪里下载Office2016官方最新版?Microsoft Office是微软开发的办公软件套装,常用组件有 Word、Excel、Powerpoint等。最新版是Office2016,其中Microsoft Office Prof

免费Mac Office 2016安装包,轻松上手教程

21天前

Mac Office 2016 安装包下载教程 本资源文件提供了适用于苹果系统的 Mac Office 2016 安装包下载教程,包括 Word、Excel 和 PowerPoint 的安装步骤。通过本教程,您可以轻松地在 M

IE管理员权限设置指南,让SWF文件流畅播放!

21天前

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言提示:这里可以添加本文要记录的大概内容:现在仍然有少数老旧系统需要使用IE浏览器才能打开,有些甚至要右键以管理员身份运行才能启动

不用麻烦,手动设置IE为你的默认浏览器体验

21天前

IE本身就是系统默认浏览器,但有时可能会一不小心将其他浏览器设置成了默认浏览器,要恢复IE为默认浏览器可以采取如下的方法。(1)对于Mozilla这类不采用IE内核的浏览器:可以打开IE,选择“工具→Internet选项→程序”,在“检查

搞定Win下的默认浏览器:为何总是IE_Web当道?

21天前

今天开始打开项目时,突然间发现我的浏览器被改成了IE打开。奇怪了,并没有设置过默认浏览器为IE! 随后,当然是修改默认浏览器了,如下常规操作: 控制面板》程序》默认程序》设置默认程序》web浏览器》点击并选着你要设置的

步骤解析:把Internet Explorer变成你的默认浏览工具

21天前

IE本身就是系统默认浏览器,但有时可能会一不小心将其他浏览器设置成了默认浏览器,要恢复IE为默认浏览器可以采取如下的方法。(1)对于Mozilla这类不采用IE内核的浏览器:可以打开IE,选择“工具→Internet选项→程序”,在“检查

Firefox不再默认?快速切换至其他浏览器的简单教程。

21天前

当电脑里面有多种浏览器的时候,有时候想时候想设置ie为默认浏览器,有时候想设置firefox为默认浏览器,有时候想设置chrome。还有想去掉浏览器启动的时候那个讨厌的提示设置为默认浏览器的提示框。 firefox中的设置方法

为何IE的Flash中心快捷方式总是开启两个浏览器窗口?

21天前

问题: ie设置为默认浏览器后,然后ie设置一个快捷方式到桌面,打开快捷方式, 竟然弹出一个是ie浏览器,一个是360浏览器,记得明明设置ie为默认了, 还能弹出2个浏览器。 原因: 虽然ie设

摆脱电脑束缚,用手机轻松管理TP-LINK路由器

21天前

用手机设置TP-LINK路由器的时候,怎么才能进入TP-LINK路由器的登录入口? 为什么我操作老是失败,总是进不去设置页面,是我的路由器坏掉了吗? 答:手机设置tplink路由器的时候,如果手机无法进入到tp

SWF解禁利器:让你的Flash中心火力全开,网速飙升

21天前

经常在找资源的时候发现很多资源都在度盘里,虽然稳定性有保证,但最头疼的问题就是:限速,且大点的文件还需要安装百度网盘客户端,一个网盘下载工具硬是给做到了300多MB,这绝对不能忍~ 之前找的PanDown被和谐了,一直没有发现

5分钟内搞定网速,Flash中心优化指南,让Adobe Flash Player流畅无阻!

21天前

XPWIN7系统都会默认限制20%的网速,我们可以很轻松地解除这个限制,使你的上网速度达到100%,真正地体验冲浪的感觉.方法如下:开始菜单-运行-输入"gpedit.msc”-确定-计算机配置-管理模板-网络-qos数据包计

Win11新手必备:一键解除网络限制,享受无阻隔的网速

21天前

很多用户更新了Win11,感觉网络比以前差很多了,这到底是为什么?其实微软Win11系统是会默认限制20%的网速的。因为是默认进行了限制,那么Win11怎么解除网络限制?下面跟着小编一起看看吧。更多win11系统,可以参考

网速慢到离谱?5分钟内手动优化,让你瞬间畅享高速

21天前

XPWIN7系统都会默认限制20%的网速,我们可以很轻松地解除这个限制,使你的上网速度达到100%,真正地体验冲浪的感觉.方法如下:开始菜单-运行-输入"gpedit.msc”-确定-计算机配置-管理模板-网络-qos数据包计

EuroLLVM’19:LLVM开发者社区的盛宴

21天前

The LLVM Foundation is excited to announce the program for the EuroLLVM’19 developers’ meeting (April 8 - 9 in Brusse

Excel高手必备:TL431可调电压基准源的求解秘技

21天前

TL431可调电压基准源的Excel求解与应用 1. TL431可调电压基准源简介 TL431可调电压基准源在行业中应用广泛,它具有简单的配置、低成本和广泛的调节能力,深受电子工程师喜爱。其基本原理图如下: grap

MJX秘籍:5倍加速技巧,改写强化学习训练规则!

21天前

突破性5倍加速:MJX如何彻底重构强化学习训练范式 MuJoCo(Multi-Joint dynamics with Contact)作为一款通用物理模拟器,已成为机器人学、强化学习等领域的核心工具。而其衍生项目MJX(MuJ

Open-AutoGLM性能瓶颈大揭秘:破解编译三大障碍

21天前

第一章:Open-AutoGLM性能瓶颈的根源解析在大规模语言模型推理系统中,Open-AutoGLM作为自动化生成与优化框架,其性能表现直接影响任务响应效率与资源利用率。尽管具备动态调度与图优化能力,实际部署中仍频繁出现延迟

发表评论

全部评论 0
暂无评论