RimWorld

RimWorld

Image Opt
174 Comments
xuanxuan 2 Nov @ 10:27pm 
即使rimsort压缩的和这个mod压缩的加载游戏速度有区别吗
xuanxuan 2 Nov @ 10:26pm 
与rimsort的optimize texture区别是什么
rimsort只能生成dds图片,不能进行zstd压缩 区别在于压缩的mod体积大小吗
What happens after I remove the mod? I don't expect it to delete the files, but does everything goes back to normal? Can I just re-add it and not need to re-compress it again? :automatons:
Pupil_passed 26 Oct @ 1:31pm 
这个mod会使原版的`画质压缩`选项失效,因为这个选项本质上是在加载时即时压缩图片。它的原理和功能跟使用dds是一样的,但是画质更差并且会延长加载时间。如果你需要用这个功能,那我想你不需要ImageOpt(
实际使用下来并不是简单的即时压缩,可能涉及到内存利用的方面,我在开启你这个模组后内存就爆掉,打不开游戏了
Thetaprime 16 Oct @ 9:17am 
Also, does this compress the files in the Mods folder of the game install?
Thetaprime 16 Oct @ 9:16am 
I have a question. Normally I use ToDDS to compress textures to DDS and there are about 33,000 files. This is only compressing about 22,000. Any ideas why there is such a large difference?
伊崎苍空 15 Oct @ 11:27pm 
我在用转了zstd之后打不开游戏了,那我该怎么把zstd全部删掉?
frus-m 5 Oct @ 5:57am 
Докладываю: мод не работает с высоким разрешением 3840х2160. играю на двух компьютерах в разных местах - точная копия с переносом папок. На втором Full HD и на нем работает прекрасно. Если удаляю мод на первом - игра загружается.
覆盖全球 19 Sep @ 9:16pm 
1.5有吗 大佬
MerLatus 19 Sep @ 5:14pm 
不知道为什么,第一次用还是好的,过了两天后突然爆大量黄字说找不到dds文件,找不到id。dds全部清除重新加载好了,过几天又爆黄字找不到dds和id
370694379 15 Sep @ 5:56am 
真的牛逼8分钟变成3分钟
吱吱宸 14 Sep @ 8:22am 
@zonde306 用rimsort转换就行了
吱吱宸 14 Sep @ 8:21am 
请问下mod内显示的预估显存是否完全准确呢?400多点mod占满了12g显存,但是预估显存也有10多g,不知道是否因为有冲突啥的,另外修改mip bias可以降低显存占用吗?
zonde306 13 Sep @ 7:21am 
有独立版的吗,不启动游戏就能压缩贴图,因为不压缩贴图某些MOD直接就启动不了,爆内存了
lxx4380 6 Sep @ 7:26pm 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
GanJu_QY 3 Sep @ 11:12pm 
能不能做成在游戏外运行的程序啊。我现在600个mod无法直接打开游戏爆内存了,必须先用rimpy优化图片然后才能启动游戏用 Image Opt 进行优化
soeur  [author] 3 Sep @ 10:27pm 
@lxx4380 Because the new version uses the D3D11 API, Linux support is no longer available. The existing .so files are left over from before the refactor and no longer compile on Linux, unless someone rewrites the D3D11 API using Vulkan. As for ZSTD, the lack of a ZSTD shared library might be the issue; I haven't tested it on Linux. I also can't statically link with MUSL on WSL, as compressed DDS uses the Intel ISPC texture compressor, which doesn't seem to be supported by MUSL.
lxx4380 3 Sep @ 6:32pm 
I wasn't able to get this mod working on Linux.

The bundled libimage_lib.so file throws an error when it tries to load, specifically complaining about a missing ZSTD_CCtx_reset symbol.
Tried compiling it myself, but failed because of winapi::shared dependency.
I'm honestly a bit curious about the original build process for the shared library.
Rob The Robot Guard 3 Sep @ 3:47am 
Question: Does this mod work on the native linux version of Rimworld.

Is the image compresser funtional on linux
Even if i supply pre compressed textures (Textures that are pre processed by this mod) does the mod still funtion on the linux version of rimworld
meandSSH 2 Sep @ 9:56am 
有没有可能提供一个类似 todds 的 cli 呢
elĐeve 30 Aug @ 9:38pm 
this mod is just peak, we might just need an option to make the compressed tx of all mods like suggested already and maybe an standalone way? like rimsort? :SG0_BestGirl:
VitaKaninen 30 Aug @ 8:33am 
Can you add an option to have it create textures for all subscribed mods even if they are not active? I am constantly adding and removing mods, but I don't want to have to remember to run the texture creator every time I add a new from from the subscribed list.
LENNOX 30 Aug @ 2:50am 
After the recent update to Rimworld, I'm having a problem with some of the textures not being read, and many areas are just generating shadows without textures.
-=GoW=-Dennis 29 Aug @ 11:54pm 
Thank you! It seems there might be one more error when this is installed with Vehicle Framework:

Unable to execute GenerateMaterials Exception=System.NullReferenceException
at (wrapper managed-to-native) UnityEngine.Texture.GetDataWidth(UnityEngine.Texture)
at UnityEngine.Texture.get_width () [0x00001] in <e422ced3d0f64bb29423e8338d57bc04>:0
at SmashTools.Ext_Texture.Rotate (UnityEngine.Texture2D source, System.Single angle) [0x00044] in C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\Vehicle-Framework\SmashTools\SmashTools\SmashTools\Utility\Extensions\Game\Ext_Texture.cs:131
at Vehicles.PatternDef.RecacheTextures () [0x001a5] in <73eb317f21524a81ad0b2855b0fc9b71>:0
at Vehicles.PatternDef.GenerateMaterials () [0x00026] in <73eb317f21524a81ad0b2855b0fc9b71>:0
soeur  [author] 29 Aug @ 8:18pm 
@-=GoW=-Dennis Oh, I know why. It's because in yesterday's update, Rimworld Vanilla added DDS support, but my code didn't anticipate the existence of .dds file paths in Vanilla. Now that I've added check for png/jpg files, that should fix the problem.

@格林祈祷中 emmm, 我mod列表也有失能机关和同作者的外骨骼mod,但是我这没问题,复现不出来。
你们都不用上班的吗 29 Aug @ 1:39pm 
烟烬种族也会闪退
你们都不用上班的吗 29 Aug @ 12:39pm 
二分法测试与失能机关有冲突,会在初始化闪退
-=GoW=-Dennis 29 Aug @ 11:46am 
Manual regenerating of DDS files worked again. Something is wrong with the automatic generation.
吱吱宸 29 Aug @ 9:13am 
去掉这个mod试了试,没感觉到原版下加载速度提升,慢的离谱
-=GoW=-Dennis 29 Aug @ 8:29am 
The GetPixel errors are gone, though, thank you! :)
-=GoW=-Dennis 29 Aug @ 8:26am 
After the last update I got tons of warnings again, now they say this:

[ImageOpt] image D:\Programme\Steam\steamapps\workshop\content\294100\2588873455\Textures\GD\UI\Icons\MainButton\water.DDS has expired, but recompress failed: The decoder for Dds does not support the format features DDS DXGI Format 98
GuGuWinter 29 Aug @ 2:19am 
压一会游戏就闪退了 有什么头绪吗:steambored:
soeur  [author] 29 Aug @ 12:27am 
@-=GoW=-Dennis 1. Tried to fix the bug of vehicle framework. 2. Added a configuration to enable automatic update and display detailed error log when compression fails.

@黃天在上,我與賭毒不共 没所谓,因为会把Graphics Settings+的功能顶掉。
GuGuWinter 28 Aug @ 11:04pm 
不是很懂 爆黄字是正常现象吗
第五星渊 28 Aug @ 10:23pm 
大佬,泰南的更新日志里面写着“Added the ability for mods to load textures from DDS files,”官方的这个DDS加载和MOD的有什么区别吗?
-=GoW=-Dennis 28 Aug @ 10:10pm 
Sorry, please forget the CE thing - I mislooked, the errors are not CE but Vehicle Framework related. I have four of them despite the compatibility patch, I listed them all in this Gist if it helps you: https://gist.github.com/D3nnis3n/885cd13bffab99d2f842f7d1cf67a156
這個跟Graphics Settings+哪個先放?
soeur  [author] 28 Aug @ 10:06pm 
@-=GoW=-Dennis ok, I will add optional auto-updates and a compatibility patch like adding ce to vef in the next update.
-=GoW=-Dennis 28 Aug @ 9:06pm 
I don't really know why it failed compressing (or why they expired), regenerating them manually worked fine, so I would have expected that it also works fine with the automatic update function.

I also noticed that next to Vanila Vehicles Expanded the mod Combat Extended also seems to suffer some of these texture2D errors, I got four of them in my logs related to CE.
soeur  [author] 28 Aug @ 8:54pm 
@-=GoW=-Dennis Hmm, maybe I should set up an auto-update configuration option and let the user decide whether to turn it on or not?
-=GoW=-Dennis 28 Aug @ 2:46pm 
After the rimworld update I got hundreds of errors like these:
[ImageOpt] image D:\Programme\Steam\steamapps\workshop\content\294100\3513849448\Textures\Things\Pawn\Animal\Apparel\Body\Cloth\Spelopede\Spelopede_east.dds has expired, and recompress failed

The amount of vanilla textures used went up from like 37 to 1500. Multiple restarts didn't fix it, I had to delete all textures and make them fresh with the settings menu.
云吞🐾 28 Aug @ 8:27am 
卧槽作者好快,8万多图原本13分钟现在不到5分钟:steamhappy:
tanyfilina 27 Aug @ 12:55am 
With this mod most of the textures from EPOE-Forked mod aren't loading: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3556795480
It looks normally without this mod.
soeur  [author] 26 Aug @ 9:53pm 
@jgn1234 看看mod版本是否0.1.11,因为有一个旧版本可能会导致卡死,但是已经紧急修复了,steam可能会没有推送更新
jgn1234 26 Aug @ 9:49pm 
为什么添加MOD后一开游戏到初始化阶段电脑就直接死机了不是游戏卡死是电脑直接死机????去掉MOD就可以正常进游戏
三宝 26 Aug @ 5:53pm 
我反馈一个问题。
我是48G内存的,上个版本里,我远超我这个mod集合,数量的情况下,是完全够用的,能载入进去的。
但,1.6版本开始,就老爆内存,哪怕用了Graphics Settings+和本mod,使用DDS加载的情况下,这就导致我不得不开虚拟内存来解决。
然后...
我之前就发现,只要进游戏,用360加速或是清内存的工具清理一下,能把占99%内存问题,干到20%或40%。

今天进游戏我心血来潮,在加载的过程中,只要在任务管理器,看见内存爆满了,手动用360加速球清理一下内存。
结果,就是内存瞬间降下去了,同时加载时间也从原来的20分钟上下,变成了17分钟。
且,更重要的是,游戏不吃我虚拟内存了。
(我不清楚是1.6版本的问题,还是本mod和Graphics Settings+,这类加载图片mod共有的问题)
yavis 26 Aug @ 5:35pm 
存档花屏报错,我也一样,但不是Image Opt导致的,大概率还是因为载具框架更新导致的问题,特别是需要依赖它的其他模组,比如MakaiTech - Vehicles,选中它的载具,狂跳红字

我后面如何拯救存档..开开发者模式,顶着花屏问题,MinifyEverything模组把所有建筑全卸载了,用RIMMSqol把穿梭机载重量修改了,把所有物品人员全用Load Instantly模组'立即装载'到穿梭机,最后换一张地图,才正常,几乎算是重建所有建筑了
L. Velociraptor 26 Aug @ 4:46pm 
@soeur -- 机器翻译:我不认为内存不足异常是由 Image Opt 引起的。列表中纹理密集型模块越多,VRAM/RAM 被填满的速度就越快。我从这个模组中看到的主要好处是加载速度和轻微的 VRAM 减少,这让 Rimworld 运行得更加流畅。

这个问题似乎出在 Rimworld 核心 1.6 上,网上有人反映,他们在 1.6 上运行几个纹理密集型模块时遇到了问题,但在 1.5 上却没有遇到这个问题。

我使用资源监视器,看到我的 VRAM/RAM 已填满,然后在收到“无法在任何活动模块或基础资源中加载‘2.0.0.0’的 Texture2D”之前被转储。在许多模块中,纹理的转储和由此产生的模块列表重置之前,基本上所有无法容纳的内容都是如此。

我对此进行过多次尝试,它似乎确实与系统内存使用有关。
L. Velociraptor 26 Aug @ 4:42pm 
@soeur -- The out-of-memory exception isn't due to your mod, I think. The more texture-heavy mods you have in the list the faster your VRAM/RAM will get filled. The main benefit I see from this mod is load speed and minor VRAM reduction which lets Rimworld run much smoother.

The issue seems to be something in Rimworld core 1.6, there are people reporting online that they are having issues running several texture-heavy mods on 1.6 when they did not have the issue on 1.5.

I use a resource monitor I have watched my VRAM/RAM fill and then get dumped before I get the "Could not load Texture2D at '2.0.0.0' in any active mod or in base resources." lines for textures in many mods. Basically whatever couldn't fit before the dump and resultant modlist reset that Rimworld does automatically.

I've played around with this a lot, it really seems to be system memory usage related.
芙蓉绿豆糕 26 Aug @ 11:19am 
哦豁