-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering animation through director is not using multiple threads #33
Comments
perhaps also worth mentioning: |
I've had a go at speeding up and improving the video generation in #45. Do give it a try. |
Thanks for testing quickly. I probably set expectations a bit high - it is significantly faster for me but only because it is using one thread more effectively. In other words the Python threading was slowing things down but it was always coded to use one thread. For you own use you could try: --- a/fract4dgui/PNGGen.py
+++ b/fract4dgui/PNGGen.py
@@ -136,6 +136,7 @@ class GenerationManager:
self.current = gtkfractal.HighResolution(
compiler,
int(self.anim.get_width()), int(self.anim.get_height()))
+ self.current.set_nthreads(self.anim.userConfig.getint("general", "threads"))
self.current.connect('status-changed', self.onStatusChanged)
self.current.connect('progress-changed', self.onProgressChanged) But I find that although it works some of the time it does also lead to segfaults and other crashes so I won't be recommending it. So, unfortunately I think #45 is as far as we can go for now. It would likely take a major investigation of the code to work out why this is crashing. |
Cool, I will apply your suggested diff and do some testing. |
I confirm your observation that it crashes very quickly when calling set_nthreads. |
It's good to have confirmation of the faults - at least it isn't my hardware. Yes I wouldn't expect it to be the Python but it could be something the Python isn't doing right in using the C/C++ extensions, even the GTK/GLib ones. |
I've tried the |
I did the following:
I would expect it to use all cores as during normal rendering. Could it be that the process is blocking due to some io ? Images are stored in /tmp, which is on an ssd and should be able to handle the io.
The text was updated successfully, but these errors were encountered: