Message 1 of 1
Code optimization :mel.eval('texGetTexelDensity(%i)' % map_size) is too slow!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
density = eval('texGetTexelDensity(%i)' % map_size)
This line of code takes too long. Is there any other way? If I get the vertices of the face, the UV ratio and the texture size to calculate the accuracy, or if I don’t need to call mel, but directly use python to speed it up. This Lines of code take up more than 90% of the time consumed by my entire tool. I want to optimize it.