Inspecio icon indicating copy to clipboard operation
Inspecio copied to clipboard

Reselect / VMT conflict

Open GrandPappyJay opened this issue 2 years ago • 1 comments

With Reselect (currently contains VMT) installed the Tool Tip window for Spawn Eggs flash though all the possible textures for the mob each frame... The cycling of available textures is nice but can it be done at a slower rate?

I am on 1.18.1 using reselect-0.2.0-alpha.5 and inspecio-1.2.1+1.18

GrandPappyJay avatar Jan 16 '22 13:01 GrandPappyJay

I suspect the reason of the constantly changing texture is that each frame the mock entity to be rendered gets a new UUID. Reselect uses the entity's UUID to seed the random generator. A possible solution is to either keep the same UUID for some period of time (e.g. one second or as long as the tooltip is open). Another solution — if the previous one is unfeasible — could be to let Reselect know that the entity is actually a mock so it can disable the randomness or handle it itself.

Digifox03 avatar Jan 16 '22 14:01 Digifox03