Hidoni / Transmog

A Minecraft mod to solve the long-standing issue of not looking cool enough.
MIT License
4 stars 0 forks source link

Compatibility issue with Vivecraft #15

Open fayer3 opened 2 months ago

fayer3 commented 2 months ago

Vivecraft calls GamerRendere.render() multiple times per frame, but only lets it run through once, which causes the renderCounter

https://github.com/Hidoni/Transmog/blob/2cca43060e1c9cf917131eac0dc5a518bc419844/Common/src/main/java/com/hidoni/transmog/RenderUtils.java#L6

to be out of whack and returning a fake inventory https://github.com/Hidoni/Transmog/blob/2cca43060e1c9cf917131eac0dc5a518bc419844/Common/src/main/java/com/hidoni/transmog/mixin/PlayerMixin.java#L41

when it shouldn't, causing the player to not be able to change items.

if you can't really fix that, I could add a call on our side to call this for everything that exits early https://github.com/Hidoni/Transmog/blob/2cca43060e1c9cf917131eac0dc5a518bc419844/Common/src/main/java/com/hidoni/transmog/RenderUtils.java#L14-L16

Hidoni commented 2 months ago

Interesting. Could you link me to the file where do you invoke GameRenderer.render() from in Vivecraft? Depending on how you do it I might have to think of a more creative way to track the render state of the game

fayer3 commented 2 months ago

https://github.com/Vivecraft/VivecraftMod/blob/cde85f81be498f9c9fc9c6368cdcef3cb2ba33bc/common/src/main/java/org/vivecraft/client_vr/render/helpers/VRPassHelper.java#L46