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.61k stars 773 forks source link

Preview Pane - Huge performance issue #5224

Open Alkerion opened 4 months ago

Alkerion commented 4 months ago

Is there an existing issue for this feature request?

Is your feature request related to a problem?

Huge performance issue with Preview pane. If Preview Pane is displayed in the slicer the GPU usage rise up to 70%, even if we don't move anything. Worse, the GPU usage stay at 70% even if we minimize the window. PC become sluggish, take ages to go back to Prepare Pane or to change a setting.

Less of a problem with ultra high end GPU (E.g. RTX 4090), but a bit overkill and over expensive for a slicer.

Which printers will be beneficial to this feature?

All

Describe the solution you'd like

Less GPU usage, better perfs, better render engine. No high GPU usage when nothing move. No high GPU usage when window minimized.

Describe alternatives you've considered

No response

Additional context

No response

DVSVIDEO commented 4 months ago

I join. I have also noticed this problem. On my 2 monitor configuration, the video running in window 2 starts to snippet when the preview window is active. Something is eating the performance even when nothing is happening....

tlhintoq commented 4 months ago

I found this makes a huge difference. Set Windows to assign the high-performance GPU to OrcaSlicer in the advanced graphic display options.
2024-05-02_14-43-25

I kinda wonder if the recent round of Windows updates has left it not switching from the Intel chipset to the high-performance card on demand.

Sidebar: Motion control with the mouse is smooth but with my 3DConnexion Space Navigator 3d mouse Orca stutters. Not life-ending or anything, but definately noticable stutter when moving, zooming, spinning etc.

Alkerion commented 4 months ago

That's more or less what I face, you need a >800$ GFX card to have something more or less fluid.

tlhintoq commented 4 months ago

That's more or less what I face, you need a >800$ GFX card to have something more or less fluid.

I'm on a laptop with a 3080mobile. image

But I'll back up and ask...

  1. What do you have for a video card?
  2. Have you selected Orca to use that card within Windows as in the earlier screenshot, so it is forced to use the best you have whatever that might be?
TomPcz commented 4 months ago

Perhaps duplicate of #3899?

Alkerion commented 4 months ago

When there is only one GFX on the PC there is no need to define anything, not useful too on a desktop PC, where the monitor is connected to the GFX directlly.

I've several PC, the one I use the most (located in the printers room) as an integrated Intel UHD.

My work PCs have a GTX 780Ti and a RTX 3080Ti, and my gaming PC a RTX 4090.

I've tried with a "very simple" model, 4000 triangles :

I'm not sure it's normal that it's required to have such high end GPU to have something fluid. 2024-05-02_11-04-26 2024-05-02_11-06-58

Alkerion commented 4 months ago

Perhaps duplicate of #3899?

Not at all, my concern is about the Preview Pane only, not global slow down, and in my case the GFX usage is stratospheric.

DVSVIDEO commented 4 months ago

I have an older processor, an i5 4440S 2.08Ghz, 12Gb RAM with an integrated video unit: HD4600

This is a very old (10 years old) processor, but it is perfectly enough to drive 2 monitors, 2 monitor video editing with GrassValley Edius broadcast editor (499 EURO) Enough to run Autodesk Fusion 360 smoothly Enough to play fullscreen video on 2 monitors at the same time But not enough for a gcode display in OrcaSlicer?

I checked with the task manager: when slicing is started, GPU usage does not increase, but decreases. All the computation is done on the CPU. And the bottom line: there's no drop in performance once slicing is complete. If I just switch to the preview, the CPU jumps to 98% even for a smooth still image.

V1.9 does the same thing, but the GPU performance stays at 100% after slicing, even if the panel only shows the still preview.

V1.8 was different. There, the slicing is also done by the CPU, but the utilization returns to normal for both CPU and GPU and only increases when I move the view.

So both 1.9 and 2.0 are buggy This is a clear bug. There must be some optimization error.

fooshards commented 3 months ago

Adding to this:

Steps to recreate: Slice a model. Large ones are better for showing the issue. Be sent to the preview pane [defaulting to "Line Type" rendering]. Select the "Speed" render preview.

this setting will cause your GPU and CPU to pin at very high usage even when idle.

Without looking at the code, I'm guessing it is re-calculating endlessly, not just when the camera preview moves.

evilhamsterman commented 3 months ago

I'm seeing similar issues, I just sent a very basic ring to the preview and while it doesn't peg it does consume a significant amount of CPU and GPU

J3LS commented 3 months ago

Just in case this is of help to the devs.

I noted above other posters appear to have better or specific graphics cards and wondered whether this was connected to the issue as I have a very basic setup and although there is some effect the machine continues to work fine.

I do notice high cpu and memory usage but only after an stl is added, however apart from the cpu fan going bananas the machine remains usable with no noticeable slowdown elsewhere. On first run, if left idle, cpu usage is so low as to be off the scale and memory usage is 1Mb.

System: Kernel: 5.15.0-107-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Xfce 4.18.1 tk: Gtk 3.24.33 info: xfce4-panel, plank wm: xfwm 4.18.0 vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy Machine: Type: Laptop System: Dell product: Latitude E7440, 16Gb memory Info: dual core model: Intel Core i7-4600U bits: 64 type: MT MCP smt: enabled arch: Haswell rev: 1 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB Graphics: Device-1: Intel Haswell-ULT Integrated Graphics vendor:

tiivonen commented 3 months ago

This is an issue with MacOs also. Happens with basic M1 and M3 Max. When preview window is open GPU usage goes sky high. This happened with previous releases too.

Alkerion commented 2 months ago

How can I turn that as a BUG ?

Azio-Pantheon commented 1 month ago

Adding to this:

Steps to recreate: Slice a model. Large ones are better for showing the issue. Be sent to the preview pane [defaulting to "Line Type" rendering]. Select the "Speed" render preview.

this setting will cause your GPU and CPU to pin at very high usage even when idle.

Without looking at the code, I'm guessing it is re-calculating endlessly, not just when the camera preview moves.

This is a duplicate of #3594 . I just submitted a fix for it. Other comments did not mention "Speed" or "Filament," so this might not be the fix for them.

J3LS commented 1 month ago

Possible connection to this issue.

Background I've just swapped ISP so changed router. Even though Orca has the new credentials I can't connect so back to a flash drive again. I can live with that until I solve it but...

Until now (with a good connection to my Ender 3 V3 KE) just leaving Orca running but not being used for a few minutes resulted in high cpu usage and the fan going bananas. Now I have the "Could not connect: No route to host" on the device page but leaving Orca running for any amount of time does nothing. CPU etc. remain idle and all quiet.

Sorry, I can't verify this by connecting again! (For the moment).

This is with an STL loaded

Edit: Verified to an extent. I solved the network problem (schoolboy error...) and tried with it connected to the printer. Sure enough after a few minutes cpu activity and fan busy. Disconnect, restart Orca, leave for a while, no activity. I'll try a few variations when time and add here.

PhapandNap commented 2 weeks ago

I have my office equipment on solar, so I am monitoring my power usage a lot more. I noticed this today. I had 3 projects open for my 3 printers and when I was on the preview view my PC was using close to 500w. I heard the fans kick up and stay on for a bit. Even with the windows minimized. This only happens with the Filament type view setting and none of the other. The 3D graph section on the GPU is at 95% when this happens as well.

PC Specs if it helps: 7900x3d 64bg ram 7900XT GPU Win 11 (latest) Orca Slicer 2.1.1