跳到正文

OptiPainting

作者:isxander

Optimizes painting rendering

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

OptiPainting

_Optimized painting rendering_

What’s this mod do?

  • This mod optimizes the rendering of paintings, by not rendering the sides of the painting that are never visible.
  • In 24w18a, Mojang added data-driven paintings, which allows for custom paintings to be added to the game, up to 16×16 in size. This mod removes that limit and allows you to have paintings of any size.

How’s it optimized?

If you have a look at a painting, you’ll notice that on the sides there is a 2px indented frame,
so it sticks out from the wall. In vanilla, these faces are rendered for every single block that the painting is made of.
This is a waste of resources, as the faces are never visible. This mod fixes that by not rendering these faces.

This may seem like a small optimization, but these tiny faces are equivalent to the full block face, so:

  • Front – 4 vertices
  • Back – 4 vertices
  • Top – 4 vertices
  • Bottom – 4 vertices
  • Left – 4 vertices
  • Right – 4 vertices

Makes a total of 24 vertices per block on vanilla. And 8 vertices per block on OptiPainting.

That’s a 66% reduction in vertices!

  • If you have a 16×16 painting, that’s 256 blocks, which is 6144 vertices in vanilla, and 2048 vertices in OptiPainting.
  • If you have a super-large 64×64 painting, that’s 4096 blocks, which is 98304 vertices in vanilla, and 32768 vertices in OptiPainting.

| With OptiPainting | Without OptiPainting |
|——————————————————————————————————————————–|———————————————————————————————————————————–|
| Comparison (with OptiPainting) | Comparison (without OptiPainting) |

_This example is rendered without the back face to demonstrate what the mod does.
You can see the back of the painting in vanilla and with the mod. (For now!!)_

Obviously, if you only have the occasional painting in your world, you won’t notice much of a difference, but it
is free optimization none-the-less!

常见问题

OptiPainting 支持哪些 Minecraft 版本?

OptiPainting 支持 Minecraft Java 版 1.19–1.20.6,共 12 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

OptiPainting 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

isxander 的其他作品

查看全部 →