DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Finally Win10 + Slow Graphics acceleration - deceleration more like

Started by corlett, February 26, 2020, 06:55:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

corlett

Hi

I am really sorry to ask this question, yes I have spent all morning searching the forum, yes I have tried different drivers and yes I have a workaround.

I have been happily churning out drawings on win7 and DCAD 26.2.  12,000 of them at the last count.
When working in 3D I like to work in wire frame and hidden line. So I have a toggle under my (\) key which swaps
>ID_GL_WIREFRAME_MODE  for  >ID_GL_QUICK_HIDDENLINE_MODE this trick has worked really well.

Post a clean installation of Win10 64bit. Radion HD 7700 card. i5 computer.

Now the cursor is moving through treacle when in 3D OpenGL Hiddenline. ie accelerated; It's fine in wire frame.
Also when I add a 3D object in this mode its re-painted 5 times.

1. Is there a commonly used  quick fix that I should be aware of?
2. Or is there a verb which is like >ID_GL_QUICK_HIDDENLINE_MODE but which uses the CDI render engine?

I know this kind of this has been done to death and I don't want to waste your time a quick yes know will do.

Clive.





Rob S

Done to death is right, been complaining of this for years now.

No one has yet been able to explain why apparently this issue does not affect everyone, and if so what they have different.

You can try Lar's macro from here.

https://forum.designcad.com/index.php?topic=7369.0

User since forever

corlett

Hi Rob S

I will look into your link thanks.

However in the last hour I have noticed "not a cure" but the affect on the behavior by changing my mouse for a wired one.

Back in the Win7 days I noticed the difference when I moved my keyboard/mouse transceiver from port to port.

Clive

Dr PR

Clive,

In response to your questions:

1. No. There is no cure for the repeated redraw problem. It has been a BUG in every version since about V18 or V19 and none of the programmers have been smart enough to fix it - but I really don't think they have tried.

Every time a change is made to the drawing the program redraws the "main" window once, and then redraws all open windows four times. So if you work in 3D with the four standard windows every time you make a slight change to the drawing there are 17 redraws. This is pretty stupid!

The larger the drawing and the more things visible, the longer it takes. I did some exhaustive tests a few years ago and the redraw time is more or less exponential relative to the number of objects in the drawing, Double the number and the total redraw time doesn't double, but increases between 3 and 4 times. Even on a fast machine it can take 5 to 10 minutes for the redraws to complete every time you make a change to a +200 mbyte drawing.

However, if you have only the "main" window open it seems to redraw it only once and then stop (on my machine). If you have only a small number of objects visible (disable unnecessary layers) and the program runs a bit faster.

2. Not that I know of.

****

The extremely slow OpenGL problem is probably a consequence of poor OpenGL drivers and mismatch to the video hardware.

Radeon has possibly the worst reputation for OpenGL drivers. Nvidia has the best reputation.

There isn't much market for CAD video cards. Most of the money is in gaming video, and it doesn't use OpenGL. Consequently the paper shuffling morons that run the companies don't give a damn if their products don't work well with OpenGL. They provide crummy OpenGL drivers and claim that they support OpenGL. But after they have your money you are screwed.

I have a Nvidia CAD video card with hardware support for OpenGL and I do not see the problems that many other people have reported with non Nvidia systems.
DesignCAD user since 1987

Lar

Quote from: Dr PR on February 26, 2020, 06:56:01 PM
... and I do not see the problems that many other people have reported with non Nvidia systems.

Phil, do you work in OpenGL or GDI mode. I remember you saying you work in Phong mode. Phong is only available in GDI mode, and in GDI mode you don't experience the cursor slowdowns like in OpenGL. GDI shading only lasts until the screen is  refreshed somehow. It is basically wireframe mode where the screen hasn't been refreshed yet.


Sometimes I emulate this 'shading on wireframe' effect by saving a shaded image of the window then loading it right where I captured it, This way you get the benefits of wireframe (seeing through entities, line thicknesses, etc, no cursor or rubberband slowdowns) on a shaded backdrop. And the shading doesn't go away until I delete the bitmap.


Lar

Dr PR

Lar,

I work mostly in Wireframe, especially in large drawings, because every change in the drawing doesn't cause 17 lengthy redraws.

But it is often necessary to view the drawing in shaded mode to see what it really looks like (sometimes I can't tell front from back or which way is up in Wireframe mode). For this I use OpenGL Gouraud exclusively so I can rotate the shaded view. GDI shading is worthless to me for drawing editing.

I rarely draw in OpenGL Gouraud because most of the points in the drawing are hidden, and I normally want to snap to or set points relative to existing points. But I do occasionally try to draw in OpenGL Gouraud to test the problems others report. I just don't see any of these problems except the ridiculous multiple redraws of all windows when I try to draw. It is a nuisance in small drawings, but it makes it impossible to work in large drawings in OpenGL.

The only time I use GDI Phong is to generate shaded images with shadows for documents, web sites and posting on the Forum. For this I enable "color material" and experiment with old and new shadows. I set the shadows to 2048x2048 pixels and put the three lighting Intensity sliders at 100% so material properties control the lighting effects. I use a single Directional Light, with "Move with Eye" almost always enabled.

Of course in GDI Phong I don't rotate the GDI images (doesn't work) or do any drawing. I use it only after a drawing is more or less finished.

Phil
DesignCAD user since 1987

Lar


Phil.


Thanks... I somehow had the impression you used Phong shading. I guess it's just for printing.


Anyway, regarding dcad's OpenGL shading antics, it seems there's a trade off: either you get the cursor slowdown or the unstoppable multi-regens. I experiences the slowdowns but my regens don't seem to be as many as you experience, and pressing the Esc key halts a regen (except in certain circumstances which I reported sometime back, like if a series of hatches are being redrawn when I press Esc). I just have to press for every window I have open.


The only time my dcad goes into everlasting regens is in a big file with tons of dimensions... Dcad would regen to a certain point, pause, then start again. When this happens the only thing I can do is shut dcad down.




Lar

Dean

I'm on Windows 7
All I can say is Design Cad with a new graphics engine would be the Cats Meow  ;D
I often use V24 with redsdk for smoother 3d shaded navigation but it's like walking on thin glass due to all the bugs.
SketchUp, Blender and autocrud to a fantastic job, just saying
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Rob S

And the consensus is:

Improve the Graphics, please.  :D

Leave the menus alone, they are great as is.
User since forever

Dr PR

Lar,

In small drawings (30 Mbyte or less) the individual redraws are so fast I don't notice them. With drawings over 100 Mbytes it begins to be annoying.

I did some experimenting a while back (posted on the Forum somewhere) with different file sizes and found that the time to redraw a single window once was not linear with the number of objects being drawn. Double the number of objects and redraw time was something between 2 and 3 times longer. So the draw time vs objects curve was exponential. That is one reason that huge files take very long times to redraw if all objects are visible. Closing unnecessary layers to hide some of the objects can speed things up a lot.

If only the "main" window is open it is redrawn only once each time the drawing is changed. But if two windows are open the redraw sequence is main, main, second, main, second, main, second, main, second = 9 redraws.

The redraw count is

1+ 4n

where n is the number of windows open. The main window is redrawn and then every open window is redrawn four times.

Are you saying you do not see these multiple redraws?

Phil
DesignCAD user since 1987