You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that when we import textures that are broken into resource atlas regions, there is a lot of stuttering in the editor for sometimes several minutes. I inspected the usage, and it looks like the spikes in CPU are traced to preview generation.
I don't know if this a regression or old issue, I don't do texture importing very often to notice. The team's artist will periodically report that editor is sometimes laggy for a long time when she sometimes starts it up. I've captured it once last week on her machine, and now I encountered it on my machine when merging new character work into my development branch.
Even if it were something heavy, it's supposed to be working in a thread in the background, so not sure why it would seize up and cause such hiccups.
Here are the code paths and their measures.
Steps to reproduce:
Has something to do with thumbnail generation. Might be due to a large texture and with small atlas regions in TRES files. First speculation is that maybe it's reloading the large source texture over and over again to generate dozens of these small atlas thumbnails.
Using the MRP below should give the results. May have to clear thumbnails from app data and restart to reproduce it more than once.
Minimal reproduction project:
This works on my machines, hopefully when starting this project, noticeable stuttering is reproduced. Stuttering.zip
The text was updated successfully, but these errors were encountered:
But inspecting the assets that are causing the stutters, and it seems to confirm that they're atlas textures. I imagine the problem is that the preview generator doesn't cache the source texture, and keeps dropping and reloading it.
Just a guess, but if right, it would mean that if there were 100 atlas pieces pointing to one large texture, it probably loads and unloads the large texture a 100 times to generate the previews.
Godot version:
9c3293b
OS/device including version:
Win 10
Issue description:
It appears that when we import textures that are broken into resource atlas regions, there is a lot of stuttering in the editor for sometimes several minutes. I inspected the usage, and it looks like the spikes in CPU are traced to preview generation.
I don't know if this a regression or old issue, I don't do texture importing very often to notice. The team's artist will periodically report that editor is sometimes laggy for a long time when she sometimes starts it up. I've captured it once last week on her machine, and now I encountered it on my machine when merging new character work into my development branch.
Even if it were something heavy, it's supposed to be working in a thread in the background, so not sure why it would seize up and cause such hiccups.
Here are the code paths and their measures.
Steps to reproduce:
Has something to do with thumbnail generation. Might be due to a large texture and with small atlas regions in TRES files. First speculation is that maybe it's reloading the large source texture over and over again to generate dozens of these small atlas thumbnails.
Using the MRP below should give the results. May have to clear thumbnails from app data and restart to reproduce it more than once.
Minimal reproduction project:
This works on my machines, hopefully when starting this project, noticeable stuttering is reproduced.
Stuttering.zip
The text was updated successfully, but these errors were encountered: