-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Materials tab preview generations causes project to hang on save #195
Comments
Some video evidence of this issue. |
I made a change to how the thumbnails are being generated in 1.0.4. Now it's using a Godot library routine to generate the thumbnails. It might be faster to switch back to the old method where I was generating them in a separate viewport, although I don't know if that will be faster or not. Edit: |
I was trying to find what else would have caused, but I narrowed it down to shaders. Then I saw the material tab and toyed around with that. Maybe the process works different depending on hardware??? My main machine isn't a slouch, but maybe there's some inconsistencies there. |
Also feel it's worth asking, does it need to generate previews every time? Can't it cache the previews and only re-generate them when the material or shader in question is "dirty"? Would mean not all previews are generated at once and only re-generated when they need to be. |
The issue there is that I don't know when the shaders become dirty. They are resources managed outside of Cyclops and I don't think there is a way to be notified of them changing. Do you still get the slowdown when the materials tab is not open? You could just not have the window open a s a workaround. I don't know when I'll get enough time to work on this. I'm a bit pressed at the moment. |
OK. Little bit of a write-up after being able to spend more time looking into this. Still don't have the full picture, though. Will defer to you if this should be closed.
Understandable. But also a little surprising that plugins wouldn't be able to access that.
The reason this took as long to identify as it did was due to the fact this happened even with the material tab closed. So, I was able to experiment a little more with this once I carved out some time. Hence my suspicion this is an issue with godot itself. But I don't know how the editor manages plugins to really be able to validate those suspicions.
Yeah, I wouldn't worry so much about this. Maybe see if you can replicate the hanging on your side? I'm curious how reproducible this is. |
I have a number of different materials (shaders included) that the material selector tabs likes to re-generate previews for every time it saves. This causes the editor to hang and become unresponsive for upwards of 20 or so seconds when a save is triggered.
This seems to be a new thing because I don't remember it being so bad before. There is a change that the godot 4.3 update did something here.
A good way to test is the have multiple a number of materials (lets say 10) in the materials tabs and save.
Then filter then out (I typed "none" in the filter field, as an example) and saving no longer caused the editor to hang.
There is, of course, the possibility this is an issue with my project, but I'm not doing anything special with my shaders as far as I can tell.
NOTE: The materials tab doesn't need to be open either. This hanging issue was eluding me for a while because I thought it was related to a large asset.
The text was updated successfully, but these errors were encountered: