Vinc3r / Polycount

A Blender addon helping to know about your scene polycount.
https://www.nothing-is-3d.com/
Do What The F*ck You Want To Public License
65 stars 3 forks source link

Selecting items is super slow #24

Open schroef opened 3 years ago

schroef commented 3 years ago

v2020.10.27 bl 2.83

Was testing you version again that of sambler and noticed you added more functionality. The interface is nice but perhaps you should change it a bit.

The main issue is that it needs a refresh and then when using the select button its also slowing down. I did not check what is happening in the background and why it does that. My guess you looping over the objects once more. EDIT Did a quick check, bsically every button runs the same action as refresh. i think you should change that and store these settings into somekind of format. That info would be easier to retrieve and the addon would respond in milliseconds.

schroef commented 3 years ago

PS why are you redrawing meshes actually? in the function calculate_mesh_polycount, i see you using bmesh the apply all mods get the data and then free the bmesh, thats kinda tedious. Why not use it how sambler does it, that one works instantly. Ow i see he does same thing, but only when its using MODS ON.

Vinc3r commented 3 years ago

Thanks for your feedback. Yea I think many optimisations can be done, I learn Blender Python on the fly so this leads to this kind of weird logic :) I can indeed add an option to enable/disable modifiers in calculation #14 About the selection I think it will take more time to handle this (as you understood, I'm not a hardcore dev ^^), feel free to suggest a pull request if you want, probably relative to #15