Skip to content
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

Viewer window refreshes too slowly #5473

Open
WangSnowchen opened this issue Sep 25, 2023 · 4 comments
Open

Viewer window refreshes too slowly #5473

WangSnowchen opened this issue Sep 25, 2023 · 4 comments

Comments

@WangSnowchen
Copy link

Version: Gaffer 1.2.10.2-Linux
Third-party tools: Arnold

Description

When I load a scene containing thousands of USD Assets into my file, I will expand all the USD:purpose:proxy in the Viewer window, which is too slow to refresh. But opening the same file in Maya and previewing the same low-model will be very fast. Is this a problem with openGL? Because I have to align the light with a specific object when making the light. In Maya, in the Arnold rendering window, you can click on the image to select the model. Will it be available in Gaffer later?

@johnhaddon
Copy link
Member

It's hard to say what could be causing the slowness without an example asset and without knowing how the display settings in Maya might differ, but we do regularly view fairly large USD assets in the Gaffer OpenGL viewer. Is there any chance you're able to share a USD file that demonstrates the problem?

It might be worth switching the Viewer to use Arnold in raytraced mode to see how that performs - in this mode you can still click on the image to select the rendered locations.

@WangSnowchen
Copy link
Author

Sorry, I can't share this scene file due to project reasons. But what can be described is that we have a lot of thatched huts and tents

@WangSnowchen
Copy link
Author

WangSnowchen commented Sep 27, 2023

Is there any way to speed up my preview of the model in the OpenGL window? I noticed that when all low-level models were expanded, the fps was only 1-3 every time.

I have attached a picture of a single thatched house and its approximate number in the scene. This is just an early exploration. The actual number of thatched houses is much higher than this.
image
image

https://www.bilibili.com/video/BV1a34y1A7PH

@johnhaddon
Copy link
Member

The just-released Gaffer 1.3.4.0 adds some settings to the viewer to control what is drawn based on the USD purpose of each object. See #5470 and https://github.com/GafferHQ/gaffer/releases/tag/1.3.4.0. It's possible that this will help, if when expanding the low-res models some non-proxy objects have been included by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants