Rachel Duim
![]() |
This is from a discussion here: https://filterforge.com/forum/read.php...sage155081 . It appears that the Sign Dots filter only uses 1 or 2 CPU cores during the map script and takes a long time to do anything (according to the top utility, the Macbook Pro is new and has 8 cores). Is this a known issue?
Math meets art meets psychedelia. |
|||||
Posted: July 6, 2020 6:47 pm | ||||||
GMM
Moderator
Posts: 3491 |
I'm afraid our LUA subsystem is single-core. This behavior is unlikely to be changed soon.
A more vivid example is Flower by Ken which can take dozens of minutes to initialize. Be careful when opening it. |
|||||
Posted: July 7, 2020 3:59 am | ||||||
SpaceRay
![]() |
So does this mean then that filters that use LUA scripting will be much more slower beacuse they will ONLY use a single core????? I thought that FF has been optimised and created to get the most of all the cores a CPU my have, but had no idea that LUA could not be optimised for this
This a great pity that is not possible to be fixed and solved and be able to upgrade to use a LUA that could use multi core CPU |
|||||
Posted: July 7, 2020 5:05 am | ||||||
Rachel Duim
![]() |
A little more looking around, lua does not support multiple cores (only coroutines). There are 3rd party extensions to do multithreading but it probably would be difficult or impossible to merge with FF (given that the calls are procedural). lua was designed to be compact and easy to merge with larger projects, so there are trade offs.
lua and threads Math meets art meets psychedelia. |
|||||
Posted: July 7, 2020 4:52 pm |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,712 Registered Users
+19 new in 30 days!
153,534 Posts
+31 new in 30 days!
15,348 Topics
+72 new in year!
12 unregistered users.