Hey guys
So, I noticed in feature requests some people were asking for a poly count/triangle count property on meshes or meshparts.
I made a plugin that, using httpservice, allows you to count the polygons in your game or under a specific selected instance(recursive).
This takes into account all roblox native meshes(head,cylinder,torso,etc), any mesh with an ID, union operations, and parts.
It’s rather fast, and it saves a MeshId - > PolyCount key value pair in ServerStorage for caching.
Functions
1. Count
Returns the poly count under a specific instance, or the game if no instance is selected.
2. Heat Map
Colors all objects interpolated from green to red based off their poly count over a max threshold specified in Settings. Clear this map with Clear.
This primarily is useful for meshes and UnionOperations.
If an object has 5k polys and you set the threshold to 5k(default), it’ll appear red. 2.5k will appear orange, and so forth.
This is mainly used to pinpoint meshes or singular objects with high poly count.
https://i.gyazo.com/530e4d6a5c1296b5bc6b6d24dc127c9d.jpg3. Heat Map 2
This is similar to Heat Map 1 in that it colors objects based off their poly count, but it is used to determine high polygon counts in a specific area or polygon density. This is obviously more intensive.
Essentially, instead of it coloring solely on the poly count of itself, it’ll color it based off the total polycount of itself and all objects within a radius around it.
Setting the threshold of red to 5k and the radius to 10 studs produces this.
My selected instance is “Town”, and as you can see the roof lit up in red due to the high poly pokemon and the stables due to the high poly horses.
I may have made a mistake here or there, and do let me know with feedback and bug reports
I made this to hopefully help out some members of the community that wanted to see how their place was doing poly-count wise.
This plugin was mainly a simple way to get the poly count of any instance, but the other functions could be helpful if you can get past the minute or so of lag(I’m working on improving performance).