TIS-3D

TIS-3D

981k Downloads

Don't send state info on execution module if invisible

fnuecke opened this issue ยท 4 comments

commented

That is, if there's a fully opaque cube in front of an execution module, don't send state changes, but do send one when that block breaks to get in sync again. This could avoid sending a lot of unnecessary but frequent packets.

commented

@fnuecke Maybe break the API yet again (yay) to give the method render() a parameter whether it's visible as well as a way to get whether a module is currently visible through getController()?

commented

I was thinking more of a helper method in AbstractModule that checks if (pseudo) isSideSolid(getFace().getOpposite()) is true. Not sure if that'd gain much rendering-speed-wise. Would need testing.

commented

@fnuecke Well probably not unless you're drawing dozens of things. But if the packets are only sent for rendering purposes, it would be extremely useful for packet efficiency.

commented

Exactly.