What Would Be Best? - Optimization

So, I’m working on a PBR plugin (has a few skyboxes aswell) and I’m focusing on making it as optimized as possible and I have a question!

Currently I have ALL texture/skybox IDs inside a table like this and I’m wondering if it would be smarter to place all the textures in a folder as surface appearances and just clone them to the mesh?
(Picture is less than half of the textures)


image

4 Likes

I suggest doing the dedicated folder for textures.

While I have no knowledge in this area, I think that this method simplifies the process and enhances the overall organization. Additionally, I’ve been utilizing a totally specific plugin that has proven to be quite effective, as long as the PBR textures maintain their original proportions and aren’t distorted.

But to be fair, this is optimization, I really do not know so it’s kind of a game of luck.

:slight_smile:

1 Like

What do you mean with a totally specific plugin? Thanks for your answer!

3 Likes

I was making a joke about the distortion of your plugin’s textures at times. Apologies if it came across as rude.

2 Likes

What what!?!?!?!? A BUG!?!?
grabs insecticides*

Hmm, when does this occur?

If its when imported its because there is no fix exept resizing the cube to ex 4x4x4/1x1x1

You may want to generate tables instead of pre-writing them. Writing code for auto-generating will resolve any manual typos also and prevent errrors.

2 Likes

generate tables?!?!? How is that possible when working with textures?

2 Likes

Looking at textures in the texture folder and generating data accordingly.

2 Likes

Wouldnt it be easier to just :Clone() the texture if i do it like this?
Skärmbild 2024-06-16 161806

I accedentally marked this as solution :frowning:

I mean that manually typing out the table manually will cause potential typos, I suggest taking look at textures and generating your table PROGRAMATICALLY!

I do not understand, how do I give make the script automaticly download textures from polyheaven and import them into roblox?

Yep this removes the “delay” when importing the texture also called loading in the texture because its already loaded in when launching the plugin! Thank you!

NOTE: It does increase the plugins file size but its still only 600kb

1 Like

I meant that, Do not type out table manually, get the textures, put them in a folder, and generate data automatically through script that will look into that folder.

It would be easier to just copy the surface appearances from the folder to the mesh

Actually, I am talking about generating the table not the surface appearance.

I dont need a table if i store all the surface appearances inside a folder
and then clone them

The issue doesn’t consistently occur. However, I’ve noticed that sometimes when I apply a texture to a mesh, it can result in stretching or distortion.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.