【Hacker News搬运】Asahi Linux上的AAA游戏
-
Title: AAA Gaming on Asahi Linux
Asahi Linux上的AAA游戏
Text:
Url: https://rosenzweig.io/blog/aaa-gaming-on-m1.html
很抱歉,作为一个AI,我无法直接访问或处理外部网站的内容,包括您提供的链接。不过,我可以提供一些指导,告诉您如果使用JinaReader(一个文本处理和自然语言处理工具)来分析并总结网页内容,您可能会采取的步骤: 1. **安装JinaReader**:首先,确保您已经安装了JinaReader。这通常涉及到使用pip安装。 2. **抓取网页内容**:使用JinaReader或其他网络爬虫工具抓取网页内容。 ```python from jina import Document from jina.clients import Client # 创建Jina客户端 client = Client() # 发送请求到Jina Pod以抓取网页 response = client.post('/search', input=Document(uri='https://rosenzweig.io/blog/aaa-gaming-on-m1.html'))
-
分析内容:使用JinaReader中的分析模块来分析抓取的内容。
# 假设您有一个分析模块来处理文本 from jina.modules.analyzers.text import TextAnalyzer analyzer = TextAnalyzer() analyzed_content = analyzer.analyze(response.outputs[0].content)
-
翻译非中文内容:如果内容不是中文,您可能需要使用翻译服务。
from googletrans import Translator translator = Translator() translated_content = translator.translate(analyzed_content, src='auto', dest='zh-cn').text
-
总结内容:使用JinaReader或任何NLP工具来生成内容的摘要。
from jina.modules.summarizers.text_rank import TextRankSummarizer summarizer = TextRankSummarizer() summary = summarizer.summarize(translated_content)
-
输出结果:最后,输出总结的内容。
print(summary)
请注意,上述代码是一个示例,并不是直接可运行的代码,因为JinaReader和GoogleTranslator的具体实现可能会有所不同,且需要相应的库和配置。您需要根据实际情况调整代码。此外,由于我无法访问您提供的链接,因此无法提供具体的内容翻译和总结。
## Post by: 6a74 ### Comments: **Wowfunhappy**: > Tessellation enables games like The Witcher 3 to generate geometry. The M1 has hardware tessellation, but it is too limited for DirectX, Vulkan, or OpenGL. We must instead tessellate with arcane compute shaders<p>> Geometry shaders are an older, cruder method to generate geometry. Like tessellation, the M1 lacks geometry shader hardware so we emulate with compute.<p>Is this potentially a part of why Apple doesn't want to support Vulkan themselves? Because they don't want to implement common Vulkan features in hardware, which leads to less than ideal performance?<p>(I realize performance is still relatively fast in practice, which is awesome!) > **Wowfunhappy**: >;镶嵌使《巫师3》等游戏能够生成几何体。M1有硬件镶嵌,但它对DirectX、Vulkan或OpenGL来说太有限了。我们必须用晦涩的计算着色器进行镶嵌<p>>;几何着色器是一种更古老、更粗糙的生成几何体的方法。与镶嵌一样,M1缺少几何着色器硬件,因此我们使用计算进行模拟<p> 这是否可能是苹果不这样做的部分原因;不想自己支持Vulkan吗?因为他们不;不想在硬件中实现常见的Vulkan功能,这会导致性能不理想<p> (我意识到在实践中表现仍然相对较快,这太棒了!) **dcchambers**: From a performance and technical perspective this is incredible. Well done!<p>It will never happen, but my dream is for the Asahi devs, Valve, and Apple to all get together to build out a cross-platform Proton to emulate and play games built for Windows on both x86 and ARM hardware running Linux.<p>A Steam Deck with the performance and power efficiency of an M-series ARM chip and the entire library of games that run on Proton is just...dreamy. > **dcchambers**: 从性能和技术角度来看,这令人难以置信。干得好<p> 这永远不会发生,但我的梦想是朝日开发人员、Valve和苹果公司能够共同构建一个跨平台的Proton,在运行Linux的x86和ARM硬件上模拟和玩为Windows构建的游戏<p> 具有M系列ARM芯片的性能和能效以及在Proton上运行的整个游戏库的Steam Deck只是。。。梦幻般。 **spease**: This is super cool.<p>So, wait, does this mean that gaming is <i>better</i> on Linux, on a Mac? > **spease**: 这太酷了<p> 那么,等等,这是否意味着游戏在Linux和Mac上更好? **bee_rider**: The M-series chips from Apple have some special hardware to help emulate x86 with near-native performance, right? I wonder if they take advantage of those features (actually I forget exactly what the features were).<p>I mean this is an incredible achievement either way. <i>Everything</i> is emulated, but they are still running AAA games. Wow. > **bee_rider**: 苹果的M系列芯片有一些特殊的硬件来帮助模拟x86,使其具有接近原生的性能,对吗?我想知道他们是否利用了这些功能(实际上我忘了这些功能到底是什么)<p> 无论哪种方式,这都是一项令人难以置信的成就<i> 所有</i>都是模拟的,但它们仍在运行AAA游戏。哇! **mikhael28**: Fantastic! A great proof of concept on Linux - lots of AAA gaming is already possible on Mac with Crossover and/or Parallels or VMWare Personal, which is free! While I have a Steam Deck, gaming on Mac works for me - I refuse to play Baldurs Gate 3 on a controller. > **mikhael28**: 好极了!Linux上的一个很好的概念证明-在Mac上使用Crossover和#x2F已经可以进行大量的AAA游戏;或者Parallels或VMWare Personal,这是免费的!虽然我有一个Steam Deck,但在Mac上玩游戏对我来说是可行的——我拒绝在控制器上玩Baldurs Gate 3。
-