Jump to content

[1.11] What could I do to render a custom IBakedModel faster?


Kander16

Recommended Posts

Hi,

 

I have some performance issues with my custom IBakedModel probably because it's pretty complex (it has many quads).

I don't want to simplify the model  so that it has less quads, because there has been put a lot of effort in.

I've thought of something, but  I don't know if this could work and how I could do this:

 

The custom IBakedModel is a ripening rack.

I made 24 new models to place in the ripening rack, the models I use for this depends on what items are inside of the ripening rack.

But the point is, the "base" of the ripening rack doesn't ever change when placed (Only has a rotation depending on the facing).

 

- Precompute:

 

Could I somehow "precompute" this model, so that I don't need to return a list of BakedQuads for the base model everytime and that it's still rendered?

So that I only need to return a list of bakedQuads for every model that renders depending on what items are inside?

Or how does it work with normal blocks like dirt?

Screenshots of ripening rack:

Spoiler

This is the base ripening rack:

C1Racn2UUAQo5Pw.jpg

This is the ripening rack with models that depend on what items are inside:

g7MWvlE.png

 

If you got other ideas of letting the model render faster, please let me know.

Thanks for helping out!

Edited by Kander16

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

Link to comment
Share on other sites

Could you show the code for the IBakedModel, and when do these performance issues happen?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

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.