SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
6.56k stars 767 forks source link

UI Slow to respond when changing settings tabs #997

Open noobydp opened 1 year ago

noobydp commented 1 year ago

Describe the bug There is about a 1 second delay when clicking the settings tabs (Quality, Strength, Speed, Support, Other), and possibly other slow performance in the UI, but this is the most noticable. It may not sound like much but it increases frustrating when changing a lot of settings.

Attached screen capture shows when the click event occurred so you can see the time between click and UI load.

I'm on Windows 11, Threadripper 2950X, Nvidia 2080Ti, 32gb ram. Fresh/new install of Orca 1.6.2

3mf File for This Bug N/A

To Reproduce Open the UI, click the tabs

Expected behavior The tabs should change instantly.

Screenshots https://user-images.githubusercontent.com/5045555/236732613-bceee3e0-1e84-46b0-895e-60ea7b45019f.mp4 Video attached

Printer model Custom voron trident, running a duet3 6hc with klipper

Desktop (please complete the following information):

image

hliebscher commented 1 year ago

not in my systems it woks fast... MAC and WIN10 1.6.2/1.6.3

gaifeng8864 commented 1 year ago

Describe the bug There is about a 1 second delay when clicking the settings tabs (Quality, Strength, Speed, Support, Other), and possibly other slow performance in the UI, but this is the most noticable. It may not sound like much but it increases frustrating when changing a lot of settings.

Attached screen capture shows when the click event occurred so you can see the time between click and UI load.

I'm on Windows 11, Threadripper 2950X, Nvidia 2080Ti, 32gb ram. Fresh/new install of Orca 1.6.2

3mf File for This Bug N/A

To Reproduce Open the UI, click the tabs

Expected behavior The tabs should change instantly.

Screenshots https://user-images.githubusercontent.com/5045555/236732613-bceee3e0-1e84-46b0-895e-60ea7b45019f.mp4 Video attached

Printer model Custom voron trident, running a duet3 6hc with klipper

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: 22H2 22621.1555
  • Orca Slicer 1.6.2

image

I have the same problem. Especially after slicing complex models, the preview interface is very slow and freezes.

mikebcbc commented 1 year ago

This happens to me as well.

hliebscher commented 1 year ago

only at all on OS WIN 11 ?

mikebcbc commented 1 year ago

only at all on OS WIN 11 ?

I'm on windows 10 64 bit

gaifeng8864 commented 1 year ago

only at all on OS WIN 11 ?

I'm on windows 10 64 bit

Me too

sashi commented 1 year ago

Also same issue with Win 11 Ryzen 5600x 3060ti

quantumfrost commented 1 year ago

This happens to me too, on Win 10. Switching tabs takes almost an entire second. Scrolling is slow too.

julie777 commented 1 year ago

There is an issue with how Bambu Studio/Orca work with graphics cards. You might try settings/graphics and change Orca to use the energy saving setting. I gave details in a previous issue that you can search for using "graphics"

quantumfrost commented 1 year ago

There is an issue with how Bambu Studio/Orca work with graphics cards. You might try settings/graphics and change Orca to use the energy saving setting. I gave details in a previous issue that you can search for using "graphics"

My desktop only has an Nvidia GPU so I don't have the energy saving setting which makes it run on the integrated Intel GPU.

noobydp commented 1 year ago

I also only have 1 dedicated Nvidia GPU

Amiyah14 commented 10 months ago

Do you have G-Sync enabled for windowed applications? Try switching G-Sync to full screen - fixed it for me. Even scrolling is fast now.

quantumfrost commented 10 months ago

Do you have G-Sync enabled for windowed applications? Try switching G-Sync to full screen - fixed it for me. Even scrolling is fast now.

I have G-sync turned off. Tried turning it on and setting it to full-screen just in case, still didn't help.

noobydp commented 10 months ago

I have gsync on full screen but I tried swapping to windowed mode and I dont think it made a difference. I did notice that Orca feels worse if the monitor refresh rate is low, but its only marginal. Even at 120hz its still laggy.

I tried a few program specific settings in Nvidia control panel but nothing I changed made much difference.

PS: I thought Orca was working better after I recently formatted my PC, but I think I just got used to the lag.

CrazyCoder commented 9 months ago

Orca 1.8.0. Same issue. Scrolling inside the tabs is painfully slow too. Windows 10, RTX 3080, 5950X. GPU is set to performance mode in Nvidia Control Panel | Manage 3D settings.

160Hz screen refresh.

It also affects Bamboo Studio 1.7.7.89.

sandro-byte32 commented 8 months ago

Orca 1.8.1 Same for me scrolling is very slow. Win 11 Nvidia 2070 Super

DoomyD commented 7 months ago

Same here, Orca 1.9.0 Windows 11 Pro Rayzen 9 3900X RTX 2070 Super 128GB RAM Motherboard MPG X570 Plus There is an obvious delay between navigating tabs, There is no way my PC ain't able to handle it, it must be a software problem!

camled commented 7 months ago

Orca 1.9.0, Windows 11 Pro Scrolling inside tabs is terribly slow. I turn the mouse wheel slightly and I have to wait a few seconds for it to scroll.

ellioteb commented 7 months ago

Same for me too, issue when scrolling

https://github.com/SoftFever/OrcaSlicer/assets/16530502/f3e771b6-a541-45bd-8b32-a4e2a0e2a210

Computer Information:

Manufacturer: Gigabyte Technology Co., Ltd. Model: X570 AORUS ELITE

Processor Information:

CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 7 3700X 8-Core Processor CPU Family: 0x17 CPU Model: 0x71 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 3593 MHz 16 logical processors 8 physical processors Hyper-threading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Supported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported

Operating System Version:

Windows 11 (64 bit) NTFS: Supported Crypto Provider Codes: Supported 311 0x0 0x0 0x0

Video Card:

Driver: NVIDIA GeForce RTX 3060 DirectX Driver Name: nvldumd.dll Driver Version: 31.0.15.3742 DirectX Driver Version: 31.0.15.3742 Driver Date: 9 12 2023 OpenGL Version: 4.6 Desktop Color Depth: 32 bits per pixel Monitor Refresh Rate: 59 Hz DirectX Card: NVIDIA GeForce RTX 3060 VendorID: 0x10de DeviceID: 0x2504 Revision: 0xa1 Number of Monitors: 2 Number of Logical Video Cards: 2 No SLI or Crossfire Detected Primary Display Resolution: 3840 x 2160 Desktop Resolution: 5760 x 2160 Primary Display Size: 27.56" x 15.35" (31.54" diag), 70.0cm x 39.0cm (80.1cm diag) Primary Bus: PCI Express 16x Primary VRAM: 12287 MB Supported MSAA Modes: 2x 4x 8x

Memory:

RAM: 49072 Mb

pawg commented 7 months ago

Orca 1.9.0, Windows 11 Pro here also. 7950x3D, RAM 64Gb, RTX 3090.

At that point it's clear that it's not hardware related. However it clearly prevents me from using this brilliant piece of software as a daily driver. Hope it could be resolved soon because the rest is lovely!

ElvisTheKing commented 7 months ago

Orca 1.9.0, Windows 11 Pro Intel 10900 RTX2080 Tabs are slow both on intel and nvidia GPUs

lixxbox commented 7 months ago

I have the same problem. Switching tabs takes very long and scrolling is stuttering. Ryzen 3700x, 32GB RAM, Windows 11, OrcaSlicer 1.9.0

However, I got the Linux version running on Windows with WSL. It is just as snappy as you would expect...

h3rm commented 7 months ago

i have the same problem on WQHD-resolution (2560px) in full screen (2 wqhd screens/multimonitor) and 144hz.. resizing the window helps a bit

scruffyOrc commented 6 months ago

I have this same issue, 2x Xeon x5690, 96GB RAM, Radeon RX 6600, WIN 11, Orca Slicer 1,9,0 (and an old 1.7.0 and a 2.0.0 beta from FlashForge Official's fork too all have the issue so it's been around for a while and it's not going away).

barnowan commented 6 months ago

Same issue here with slow tabs and scrolling on my laptop. My desktop works just fine.

szafranski commented 6 months ago

Same here, only on Windows 11. MacBook Air - works fine.

wilkems commented 6 months ago

Same thing here. Windows 11, Ryzen 7 3700x, Nvidia GeForce 2070 Super. Bambu and Prusa are working fine.

Based on the comments, is everyone on Nvidia?. I'm seeing both Ryzen and Intel, though mostly Ryzen.

szafranski commented 6 months ago

I discovered that saving and reopening same project sometimes fixes the issue. Weird.

RobBott commented 5 months ago

Same issue for me on Windows 10 and an Nvidia GPU

LeHungryBoi commented 5 months ago

same issue with tab switching and scrolling, ryzen 1600 and rx 580

vgdh commented 5 months ago

same issue rtx460 Intel(R) Xeon E31270

i8086m commented 5 months ago

Same issue Windows 11 i7-8086K RTX 3070 32GB RAM

alexyubin commented 5 months ago

Same issue

Akucuki commented 4 months ago

I'm on Arch Linux, launching it using appimage and it's painfully slow, device tab sometimes doesn't work at all.

Akucuki commented 4 months ago

The problem on Linux seems to be with the webkit2gtk with versions higher than 2.42.5-2. Downgrading back to 2.24.5-2 eliminates all of the issues with blank and laggy tabs. Works like charm now.

Tethgar commented 4 months ago

Issue still persists on v2.0.0, scrolling works fine when the application is first opened but eventually scrolling becomes very laggy, the rest of the application works just fine and is responsive. Restarting Orca fixes the issue but obviously don't want to be doing this every 1-2 hours

Flavourdynamics commented 4 months ago

I'm also experiencing this issue, gradual slowdown.

epicylon commented 3 months ago

Same issue. NVIDIA 2080, Intel i7 CPU. 64GB RAM.

wilkems commented 3 months ago

I just doubled my ram from 32 to 64gb, and I upped the speed from 2133, to 3200mhz and it made a massive improvement.

Not sure if that's brute forcing over the actual issue, or there's a bug with memory allocation that my upgrade mitigated, but wanted to report back the change.

szafranski commented 3 months ago

I think it is a coincidence :) sometimes it runs fine

On Fri, 10 May 2024 at 15:23, wilkems @.***> wrote:

I just doubled my ram from 32 to 64gb, and I upped the speed from 2133, to 3200mhz and it made a massive improvement.

Not sure if that's brute forcing over the actual issue, or there's a bug with memory allocation that my upgrade mitigated, but wanted to report back the change.

— Reply to this email directly, view it on GitHub https://github.com/SoftFever/OrcaSlicer/issues/997#issuecomment-2104602671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFUHCADRUY6GZPCAG65JPK3ZBTC33AVCNFSM6AAAAAAXZM3EQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGYYDENRXGE . You are receiving this because you commented.Message ID: @.***>

wilkems commented 3 months ago

I think it is a coincidence :) sometimes it runs fine On Fri, 10 May 2024 at 15:23, wilkems @.> wrote: I just doubled my ram from 32 to 64gb, and I upped the speed from 2133, to 3200mhz and it made a massive improvement. Not sure if that's brute forcing over the actual issue, or there's a bug with memory allocation that my upgrade mitigated, but wanted to report back the change. — Reply to this email directly, view it on GitHub <#997 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFUHCADRUY6GZPCAG65JPK3ZBTC33AVCNFSM6AAAAAAXZM3EQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGYYDENRXGE . You are receiving this because you commented.Message ID: @.>

In my case I can state with a high level of certainty that it is not a coincidence. Ever since installing it, it has been consistently bad, or awful. Never good. I spend hours inside Orca Slicer every single day, and I'm very familiar with it's performance issue.

This change was big and easily noticeable when compared to my entire history with the program.

noobydp commented 3 months ago

I've had extended periods (months) where it works fine, to the point I forgot I raised this ticket.

Aaaaaand then it happens again and I remember the pain.

I don't want to discount your experience, but I'm also on powerful hardware, as are many.

szafranski commented 3 months ago

At least works fine on Mac. (I know it is not suffcient.) I think it is something related to memory assignment etc on PC but I am not an expert in this regard. On 10 May 2024, at 15:49, noobydp @.***> wrote: I've had extended periods (months) where it works fine, to the point I forgot I raised this ticket. Aaaaaand then it happens again and I remember the pain. I don't want to discount your experience, but I'm also on powerful hardware, as are many.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

wilkems commented 3 months ago

I'm unfamiliar with the structure, but is there a point where Orca devs see this and step in to look at it? Or is it up to the community to narrow it down or wait until a working version is released?

pluciorx commented 3 months ago

Could be the same issue as: #3899

aaronatweta commented 3 months ago

I have found one problem and have a fix on my machine that is looking solid so far. Changing tabs is almost instant now. I will probably PR it and see if it gets in.

The whole UI is really badly written and severely unoptimised so there are likely many places where this could be sped up significantly.

wilkems commented 3 months ago

I have found one problem and have a fix on my machine that is looking solid so far. Changing tabs is almost instant now. I will probably PR it and see if it gets in.

The whole UI is really badly written and severely unoptimised so there are likely many places where this could be sped up significantly.

What were you able to try that's seeming to work? I monitored ProcMon and on tab change, about a million image files were called, making me think it's a storage access issue.

akoolenbourke commented 3 months ago

I have found one problem and have a fix on my machine that is looking solid so far. Changing tabs is almost instant now. I will probably PR it and see if it gets in. The whole UI is really badly written and severely unoptimised so there are likely many places where this could be sped up significantly.

What were you able to try that's seeming to work? I monitored ProcMon and on tab change, about a million image files were called, making me think it's a storage access issue.

What I did is avoid any subsequent rebuilds of the UI when a tab has already been visited. The current code essentially throws away all the contents of the tab you're leaving and rebuilds the one you're entering. Then if you go back to the previous tab it does the same. My fix simple hides the contents of tab pages when you leave the page so it doesn't rebuild it from scratch.

This is my first time in the code base and I'm relatively new to the software so there could be something I'm missing but it's so much better now.

I would guess that rebuilding is the thing that does a tonne of image work, likely for icons and things and I imagine there are MANY places where optimisations can be done.

Here's a video of what it's like for me now, compared to about 1 second whenever I switched to the Quality tab. I will do a PR soon and see if it gets in.

https://github.com/SoftFever/OrcaSlicer/assets/29034122/1678b022-2d1e-41c7-b1b6-baa1bc00fd17

wilkems commented 3 months ago

I have found one problem and have a fix on my machine that is looking solid so far. Changing tabs is almost instant now. I will probably PR it and see if it gets in. The whole UI is really badly written and severely unoptimised so there are likely many places where this could be sped up significantly.

What were you able to try that's seeming to work? I monitored ProcMon and on tab change, about a million image files were called, making me think it's a storage access issue.

What I did is avoid any subsequent rebuilds of the UI when a tab has already been visited. The current code essentially throws away all the contents of the tab you're leaving and rebuilds the one you're entering. Then if you go back to the previous tab it does the same. My fix simple hides the contents of tab pages when you leave the page so it doesn't rebuild it from scratch.

This is my first time in the code base and I'm relatively new to the software so there could be something I'm missing but it's so much better now.

I would guess that rebuilding is the thing that does a tonne of image work, likely for icons and things and I imagine there are MANY places where optimisations can be done.

Here's a video of what it's like for me now, compared to about 1 second whenever I switched to the Quality tab. I will do a PR soon and see if it gets in.

Fastertabs.mp4

That checks out with what I was seeing in ProcMon. So much file access. Dont' know why it doesn't load just once and cache it for recall (talking out of my rear. I don't know how this program works).

Did you also have the slow scroll issue? If so, did this fix it too?

akoolenbourke commented 3 months ago

I have found one problem and have a fix on my machine that is looking solid so far. Changing tabs is almost instant now. I will probably PR it and see if it gets in. The whole UI is really badly written and severely unoptimised so there are likely many places where this could be sped up significantly.

What were you able to try that's seeming to work? I monitored ProcMon and on tab change, about a million image files were called, making me think it's a storage access issue.

What I did is avoid any subsequent rebuilds of the UI when a tab has already been visited. The current code essentially throws away all the contents of the tab you're leaving and rebuilds the one you're entering. Then if you go back to the previous tab it does the same. My fix simple hides the contents of tab pages when you leave the page so it doesn't rebuild it from scratch. This is my first time in the code base and I'm relatively new to the software so there could be something I'm missing but it's so much better now. I would guess that rebuilding is the thing that does a tonne of image work, likely for icons and things and I imagine there are MANY places where optimisations can be done. Here's a video of what it's like for me now, compared to about 1 second whenever I switched to the Quality tab. I will do a PR soon and see if it gets in. Fastertabs.mp4

That checks out with what I was seeing in ProcMon. So much file access. Dont' know why it doesn't load just once and cache it for recall (talking out of my rear. I don't know how this program works).

Did you also have the slow scroll issue? If so, did this fix it too?

After my change procmon reports zero file accesses when going to the tabs a subsequent time which is good. From a brief test it doesn't (And I wouldn't have expected it to) fix the slow scroll.

PR has been made so let's hope it's a good fix and makes it in.