Is the mod supposed to work with a shaderpack ? [1.12.2]
khalen56 opened this issue · 7 comments
So far I'm really happy with this mod, it greatly improves performances on a world with a lot of signpictures.
I just have a question, is the mod supposed to cull entities with shaders enabled ?
Without shaders, the debug shows me around 3K entities skipped, and last pass is always around 20ms.
With shaders, 0 entity skipped and last pass is always around 1 or 2ms.
Tested with OptiFine_1.12.2_HD_U_G5 and Chokapic13_V9 shaderpacks
Possible that 1.12.2 optifine is weird. As I said, I don't test optifine, but last time I checked it worked fine with optifine shaders in 1.16+. Possible that 1.12.2 optifine renders shaders differently than in "newer" versions. In that case optifine 1.12.2 shaders would be unsupported.
Yes it does work with shaderpacks. Noteworthy that I don't test with Optifine since Sodium replaces that. On 1.12.2 culling is also turned off in f5 mode, as the game doesn't even know where the camera is located.
I've been checking the code, it seems that in CullTask.java, the noCulling boolean seems to change between true and false even when not in 3rd person when a shader is active.
Forcing the boolean to false make the culling working when a shader is active, that's weird 🤔
Don't have the source open rn, but the noCulling flag on each entity is a vanilla thing. Possible that optifine forces that to true for shadows.
I'm talking of this line https://github.com/tr7zw/EntityCulling/blob/1.12/EntityCulling-Forge/src/main/java/dev/tr7zw/entityculling/CullTask.java#L58
It's just checking for the third person camera, so shaders in 1.12.2 seems to mess with that.
Also, it is interesting to see that there are two times more skipped entities with a shader. Maybe that can explains poor performances on 1.12.2 with shaders