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

Interface laggy / low fps when zooming in, only on certain hardware #89

Open
gamerpaddy opened this issue Jan 16, 2019 · 9 comments
Open

Comments

@gamerpaddy
Copy link

The Interface (viewport) is very laggy when zoomed in.
this only seems to happen on my desktop computer (8700k, 32gb ddr4, 980ti win 10 pro)
but not on my tablet which i use on my cnc (i5-3320m, intel integrated graphics, 4gb ddr3, win 10 pro)

video:
https://streamable.com/khw6i

version: 1.5.4.0

@canbaytok
Copy link

I dont see why OCP would be at fault here, since its working fine on your less performant machine, which is why I would suggest that you update your GPU driver or just be a little more radical and reinstall windows completly.

@martin2250
Copy link
Owner

This also happens on my machines (both desktop and low-power laptop), but only at much higher zoom levels. At those zoom levels it doesn't affect usability much. I don't know what causes it and there is not much I can do, as the 3D viewport is entirely handled by an external library (HelixToolkit).

You did give me an idea though: I'll try scaling everything up by a factor of 100 or so, maybe this allows zooming in 100x more with the same level of lag. I don't know when I'll get around to it though.

@holance
Copy link

holance commented Jan 29, 2019

If your CPU has integrated graphics card, and the program did not specify to use external graphic card, it may run on the integrated graphics card by default. This may be the root cause of your performance issue. You may want to use following code at program startup or manually run the program using external graphics card.

https://github.com/helix-toolkit/helix-toolkit/blob/develop/Source/HelixToolkit.SharpDX.Shared/Utilities/NVOptimusEnabler.cs

HelixToolkit WPF version is using WPF internal 3D engine for rendering. It does not supports GPU line/point drawing, all lines/points are drawn using CPU. If your scene has many lines/points, it causes performance problem.

I would suggest you to try the SharpDX version and see if performance issue still happens.

Also I saw there are many overlapping WPF controls over the viewport. Try to use BitmapCache on these overlapping controls to improve performance as well.

@deHarro
Copy link
Contributor

deHarro commented Jan 29, 2019

Perhaps this info is of some value for the issue...

I run OCP on an i5 without graphics card, the whole rednering is performed on the integrated graphics of the CPU (not that those integrated graphics kernels are bad in any way. In contrary, I'm very pleased of the overall performance, but I'm no gamer).
I have no performance issues with OPC at all, even when zooming in to a single via fullscreen.

Harald

@holance
Copy link

holance commented Jan 29, 2019

It depends on the resolution of your monitor as well. If your monitor has HD resolution or connects with multiple monitors, integrated graphics card will not perform well.

@deHarro
Copy link
Contributor

deHarro commented Jan 29, 2019

Ok, I can follow :)
The monitor has only 1280 x 1024 pixels and it's a single monitor installation (at the CNC machine).

On my office machine I use the integrated graphics, too. Here I have two monitors, 2556 x 1440 and 1920 x 1200, respectively. No performance issues with OCP.
Ok, this machine has an i7@4GHz.

But obviously others have issues with the performance, and trying to improve OCP by changing the graphics subsystem is not so bad, I'm with you.
Harald

@gamerpaddy
Copy link
Author

you guys are mixing this up

-it runs better on integrated graphics on a slow pc
-it runs worse on the one with a dedicated gpu thats overall very fast.

  • but it also runs fine on the gtx 570m laptop which also doesnt have a integrated gpu.
    -the one with the dedicated gpu doesnt have a integrated gpu enabled.
    -both have the same screen resolution and refresh rate.
    -this problem also exists in the examples provided by helixtoolkit-wpf its not a opencncpilot issue.
    -removing everything from the 3d viewport except one element still causes this issue, doesnt matter which element is in it.

loading in a gcode file that draws a bunch of lines makes the program unuseable on problematic computer this is all about.

@deHarro
Copy link
Contributor

deHarro commented Jan 29, 2019

I think I should delete my comments above, they seem to add only traffic and lead the discussion into a wrong direction. Sorry.
Please ignore my comments!
Harald

@holance
Copy link

holance commented Jan 29, 2019

Since Helixtoolkit wpf is using wpf internal 3d engine, you may want to check if you have driver issue.

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

5 participants