admin 管理员组文章数量: 1184232
注:机翻。未校。
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
版权声明:本文标题:GTA Online速度革命:70%加载时间的惊天大逆转 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/b/1772590937a3557079.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
更多相关文章
从192.168.1.1开始:Adobe Flash Player官方入口的全面解读
【登陆官网】网友提问:怎么用的呢?的时候,官网登陆不了怎么办?热心网友答:要进入192.1.1.1,需要手机连接路由器发射出来的Wi
轻松搞定192.168.0.1,从初学者到高手的路由器设置技巧
摘 要 (导读:192.168.0.1路由器设置)1、路由器正确安装:2、IP地址设置3、登录路由器4、设置路由器目录本文将介绍192.168.0.1路由器设置的方法及教程;适用于小白新手换新路由器或者路" (导读
192.168.1.1路由器管理页面轻松登陆教程,告别网络困扰
快速体验打开 输入框输入如下内容 帮我开发一个路由器登录页面模拟系统,用于展示常见路由器的管理界面登录流程。系统交互细节:1.输入正确IP地址跳转登录页 2.输入错误地址提示更正 3.忘记密码时显示重置指
告别重装系统,用DISM轻松解决电脑问题
介绍了解: DISM(部署映像服务和管理)是三种 Windows 诊断工具中最强大的。当遇到频繁的崩溃、冻结和错误,或者 SFC 要么无法修复您的系统文件,或者根本无法运行时,可以使用该工具。 相连文章: 修复
Dism助力:快速上手实现Flash Player无缝安装与更新
相关文章推荐:Windows ADK 下载地址: 命令示例:Gimagex图形化演示:以下命令由DISMGUI生成,原汁原味1.首次备份镜像【Captu
Dism命令教程:Adobe Flash Player安装与维护的简便方法
DISM(Deployment Image Servicing and Management)可以编辑WIM,安装,卸载,配置WinRE或者WinPE,也可以用来部署系统。它通常存在于C:Windowssystem32路径下(若是
揭秘Dism日志:解锁Windows系统维护的终极武器
使用DISM命令修复系统注意:DISM命令只会修复系统自带的文件,第三方软件、驱动问题使用此命令修复是无效的,修复过程是比较漫长的,但是修复期间不会影响你系统正常使用、也不会卡什么的,占用资源比较低。 一、检查映像
一文解密Dism++:卸载驱动的超高效方法
资源说明 Dism++(系统精简利器)是一款功能全面的Windows系统精简工具,在某种程度上可以说是以前的Dism管理器的升级版(最开始的名字叫Windows更新清理工具),Dism++(系统精简利器)全新的构建,更小的体积
DISM++:你的Flash播放问题终结者,提升性能
简介:DISM++是一款全方位的电脑维护软件,提供深度扫描和清理功能,专为优化个人计算机而设计。它能够高效清除各种系统垃圾和无用文件,释放硬盘空间,并通过系统清理、优化、备份和恢复功能提高电脑的运行速度和性能。该软件还支持多语言界面,
Dism命令新探索:深入理解与实践Windows映像文件维护
Dism是什么? dism 命令(Deployment Image Servicing and Management)是Windows操作系统中的一个命令行工具,用于管理和维护映像文件(如Windows安装映像或修复映像)。d
Dism++:你的日常维护与系统优化好帮手
简介:Dism++是一款先进的系统维护工具,专注于清理电脑垃圾、释放内存,提供全面的系统优化解决方案。最新版本Dism++10.1.1000.100_2d2bf466baca088c4b35248f5a7316f4e00cac0b特别
当Windows系统出问题时,如何借助DISM挂载映像进行修复,让电脑焕然一新?
如何使用DISM对Windows系统映像进行修复在前些天我更新电脑驱动的时候,更新程序报错了。我检查后发现是系统映像完整性的问题。在我解决完问题后,我决定把这个解决的过程记录下来,希望能帮到别人。 那么正文开始
Windows Server系统备份与恢复:实战教程
1、添加windows server backup功能 a)选择添加角色和功能 b)选择功能中勾选“windows server backup”,然后“下一步” c)安装功能 2、使用windows s
C盘大搬家?别怕,Ghost备份带你安全过!
推荐用U盘制作启动工具 大白菜or老毛桃 备份:以老毛桃为例,进入PE,点击左下角开始,可见ghost功能选项 运行Ghost后,单击“OK”。 选择“Local”→“Partition”→“
Adobe Flash Player的未来发展趋势预测
目录背景: 在日常的工作中,由于我的笔记本自带的SSD固态硬盘是512G的容量,平时下几个大型的文件或者资料就要快满了,于是决定换一个1TB的固态硬盘,换之前首先确认自己现在用的是什么类型的固态硬盘,推荐大家一款
省时省心!三步完成电脑系统高效备份!
电脑系统备份方法 当今时下系统备份已经越来越被广大网友们所使用,做好了系统备份,就相当于给你的电脑系统加了一个保护伞或者买了份保险。 电脑系统备份的重要性已经尤为明显,提前做好了 的朋友可以不用担心电脑
Ubuntu系统安全大计,备份技巧大公开
本文主要参考这个博客。全文一半内容是复制粘贴的这个博客内容,提前声明一下,以防侵权。还参考了下这个ubuntu有时候用着用着崩了,或者想回退到历史某个版本。这就需要系统备份了:把当前某个能用的状态备
Linux系统安全小贴士:掌握备份与恢复,安心每一天
系统备份linux秉承一切皆文件的思想,系统备份就相当于把整个(根目录)所有文件打包压缩保存。 备份前先切换到root用户,避免权限问题,然后切换到(根目录)。 tar -cvpzf mediaDisk
Linux系统不哭:高效备份与快速恢复方案
备份系统1.先切换到root用户sudosu 2.进入根目录tar cvpzf backup.tgz --exclude=proc --exclude=lost+found --exclude=ba
Ubuntu系统维护秘籍:备份步骤详解,保护你的劳动成果!
记录ubuntu的系统备份方法: 测试平台:ubuntu16.04,已安装nvidia384 cuda opencv protobuf等等运算库。使用ubuntu时经常需要重新安装电脑,和windows不一样的
发表评论