TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

LuaJIT 2.0.3

110 点作者 kul_大约 11 年前

4 条评论

just2n大约 11 年前
Do most games that use Lua for scripting (addons, UI, possibly game logic) actually use LuaJIT?<p>As far as I could tell, 100% of the AAA titles that use it that I tested (3 in total) did not. And in profiling, Lua was actually consuming a lot of CPU relatively.<p>That confuses me given how easy it is to use LuaJIT over the reference, and how vital performance in these environments is<i>.<p></i> Games, contrary to the beliefs of dense hiring managers, disconnected producers, and even designers, are performance critical applications -- achieving a mere 30 FPS and &gt; XX+ms input latency on hardware 5 years in the future in the enthusiast category, on the order of $4000+, is an absolute failure. Every gamer I&#x27;ve ever met (thousands, thousands upon thousands, hundreds that I know well) is extremely sensitive to performance. Performance is king. If a game looks a little shitty but runs AMAZING, it is better than a game that looks AMAZING but runs a little shitty. Hell, it&#x27;s even better than a game that looks WTFAMAZING and runs pretty well. We only start caring about the looks, typically, when performance is sufficient. So if we can dial the game&#x27;s graphics up while maintaining performance, we get happy. Enthusiasts love it when they can dial all the way to max settings and <i>still</i> play the game at 60+ fps and unnoticeable input lag. So running your render loop and lua on the same thread (a WTF in itself) and not using LuaJIT is a huge WTF.
评论 #7389123 未加载
评论 #7390389 未加载
评论 #7389315 未加载
评论 #7389144 未加载
pavanky大约 11 年前
Curios how many people here actually use Lua ? What are the applications you are using it for ? I know it is used a bit in the gaming industry for scripting purposes, but I am not aware of anything else.<p>We use it internally to map some of the functions in our library to OpenGL.
评论 #7388317 未加载
评论 #7387786 未加载
评论 #7387547 未加载
评论 #7387924 未加载
评论 #7388087 未加载
评论 #7390338 未加载
评论 #7387529 未加载
评论 #7387854 未加载
评论 #7387875 未加载
评论 #7389257 未加载
评论 #7388007 未加载
评论 #7389770 未加载
评论 #7387892 未加载
评论 #7388960 未加载
评论 #7387530 未加载
评论 #7390015 未加载
评论 #7389118 未加载
评论 #7389525 未加载
评论 #7387684 未加载
评论 #7391422 未加载
评论 #7387480 未加载
评论 #7389129 未加载
评论 #7387761 未加载
评论 #7387591 未加载
评论 #7389965 未加载
评论 #7388508 未加载
deutronium大约 11 年前
I really wish I could use LuaJIT, but unfortunately the memory limitations of it means I can&#x27;t (I&#x27;m aware of FFI).
评论 #7387353 未加载
评论 #7386798 未加载
评论 #7387117 未加载
mjcohen大约 11 年前
And then there is LuaTex: &quot;LuaTeX is an extended version of pdfTeX using Lua as an embedded scripting language.&quot;<p>See luatex.org.