Posted March 11, 20169 yr Hello, I am writing a mod which requires a large amount of custom textured particles, however I, having searched for a while, only found suggestions to manually bind a texture before rendering the particle and rebind the default after, which worked fine for me, except that I suddenly got 16 fps from a relatively small amount of particles . So has anyone since found a reasonable way to bind a new texture to your custom particles without lagging the game through the floor? Any help would be much appreciated. Thank you in advance.
March 11, 20169 yr I cannot sence your mistake, so please show some code if you want specific feedback. For now I suspect that you are spawning the particles on the serverSide? But Im not sure, so again, please show what you have so far. Projects: Discontinued: - N2ConfigAPI - Meachanical Crafting Table Latest: - CollectionUtils Coöperations: - InGameConfigManager
March 11, 20169 yr Hi You might find this technique useful - it puts your texture into the vanilla texture sheet so you don't have to rebind every time. https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe50_entityfx/Notes.txt So long as your texture size is not too big, this should work just as fast as vanilla textures. Are you sure the slowness is coming from the texture rebind? i.e. if you don't rebind the texture, does it speed up? -TGG
March 12, 20169 yr Author Thanks a LOT! It worked! Took a bit of work, but now it doesn't lag and the texture works perfect! Thanks again!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.