Jump to content

Recommended Posts

Posted

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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.