LookingGlass icon indicating copy to clipboard operation
LookingGlass copied to clipboard

LookingGlass seems to break the world a bit when a view is created.

Open Geforce132 opened this issue 9 years ago • 4 comments

Whenever I create an IWorldView in the same dimension as the dim. I'm currently in, my world seems to break a bit. Some chunks just refuse to load unless I cleanup the IWorldView, quit the game and restart. You can tell if the world is messed up by looking at two other small little bugs, if you break blocks with an IWorldView present, they seem to drop double the amount of particles they should, and rain particles seems to drop much faster than normal. This seems to happen both if I use the API to create a view, or if I use /lg-viewdim. It's kinda weird looking...

Mods:

  • Forge v10.13.3.1420
  • LookingGlass v0.2.0.00

Geforce132 avatar Aug 03 '15 16:08 Geforce132

@xCompWiz Any progress on this issue? I was planning on releasing the new version of my mod, SecurityCraft, that uses LookingGlass sometime this week, and was just wondering if any updates to LookingGlass could possibly be coming? :)

Geforce132 avatar Oct 14 '15 15:10 Geforce132

Well, LG went open source. You are welcome to help track down the issue. :P This likely has to do with the alongside worlds being rendered twice. Minecraft's rendering isn't designed for multiple frames per tick, and thus all the update code for rendering is built in. The easiest fix is perhaps expensive: Duplicate the render state. This might require duplicating the world as well, meaning that rendering where you are requires having the chunk data loaded twice. Hopefully that can be avoided.

XCompWiz avatar Oct 19 '15 14:10 XCompWiz

@XCompWiz Fixed, see #19. :)

Geforce132 avatar Dec 01 '15 17:12 Geforce132

Recent commit based on your PR might fix this. crosses fingers

XCompWiz avatar Jul 30 '16 23:07 XCompWiz