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

Do not create raycaster when loading the gcode preview #7596

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Noisyfox
Copy link
Collaborator

@Noisyfox Noisyfox commented Nov 27, 2024

Preview will be rebuilt every time we made any changes to the project, such as moving an object, even when the Preivew page is not shown. Creating raycasters (called from GCodeViewer::load_shells) is slow when model has lots of triangles, and those raycasters won't be used at all since we can't interact with any model on the Preview page, so those raycasters are useless, and should not be created at all.
This should make the GUI more responsive when working with projects that has lots of complicated models.

Further more, should we skip the preview reload entirely if the preview page is not shown?

@Noisyfox Noisyfox marked this pull request as ready for review November 27, 2024 13:56
@Noisyfox Noisyfox added the QoL label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant