mcyangtuo 发表于 2022-3-17 21:47:54

Felix:一些技术实验



https://attachment.mcbbs.net/data/myattachment/forum/202203/17/114307ydhaabl5cuvhnvln.jpgFelix "Xilefian"
@Xilefian

Tried out front-buffer rendering in Minecraft for some lower input latency. Modern OS's already use VSync so it works fine in a window, but as soon as you go full screen hoo boy that's some dangerous flashy flashing flashes.

I feel a bit sick from experiencing that.

The solution would probably be to skip GPU submission until in VSync, but the game isn't architected for that, nor is it possible to do in a platform agnostic way
由 电量量 翻译自英文
我在 Minecraft 中试了试前端缓冲区渲染,试图消除一点点输入延迟。现代的操作系统已经在使用垂直同步了,所以在窗口内它运作良好,一旦你开启全屏,就开闪来闪去了。

我现在有点犯恶心。

解决方法大概是在垂直同步之前跳过 GPU 提交,但是游戏不是这么设计的,而且也不能用一种跨平台的方法实现它
上午12:39 · 2022年3月12日 · Twitter for Android · SPX


@kynan999:How about if full-screen were to be replaced with borderless fullscreen? Then it's technically still drawn in windowed mode
可以把全屏换成无边框窗口全屏吗?在技术上它还是以窗口模式绘制的


https://attachment.mcbbs.net/data/myattachment/forum/202203/17/114307ydhaabl5cuvhnvln.jpgFelix "Xilefian"
@Xilefian

Yes that would fix it. Java Edition does use borderless full screen when going from windowed to desktop full screen resolution, so it worked fine, until I changed VSync setting or full screen resolution
由 电量量 翻译自英文
没错,这样应该就成了。在从窗口切换到全屏的时候,Java 版确实会用无边框全屏,这样就不会有问题,直到我改了垂直同步设置或者全屏分辨率。
上午12:57 · 2022年3月12日 · Twitter for Android · SPX



【原贴地址:https://www.mcbbs.net/thread-1314983-1-1.html】原帖作者:电量量

是天然呆呀 发表于 2022-3-17 23:07:23

感谢分享

全民作死 发表于 2022-3-19 19:37:52

话说非窗口化全屏可以降低输入延时,但是输入法什么的就显示不了了捏
页: [1]
查看完整版本: Felix:一些技术实验