Page 1 of 1

[Solved]Scrolling Slow in Layout Block

Posted: Tue May 09, 2023 3:17 pm
by RMK-Designs
I have had an issue in the past with scrolling in and out in the layout block. On some drawings scrolling in and out is very slow, it is more of a lag for the view in the window to catch up. I figured it was a large drawing, so I did not worry about it. Other times I copied and pasted the entities into another drawing which seemed to solve the problem. Currently I am working on a feed shed design and ran into this issue again. This drawing is just a small floor plan with minimal content. Once I inserted a viewport in the layout block it became slow to react to scrolling and selection is also slow. I did however find that if I locked the viewport layer it returns to the proper reaction to scrolling and selection. It seems the viewport is the cause. I did try to copy and paste the entities from model space into another drawing which had no change on the viewport reaction. The only blocks are 2 windows and an exterior door. I previously added a utility sink block that I exploded and purged. Could there be residual content that was not removed? Is there a way to see what content is in the drawing that may cause this. Since I now know I can lock the viewport to solve this issue it is not that serious, I would just like to learn the cause if possible and correct it in the future.
Attached is the drawing. I am using Qcad version 3.28.1 on Windows 11

Re: Scrolling Slow in Layout Block

Posted: Tue May 09, 2023 7:00 pm
by CVH
Hi,

I initially could not replicate lagging with scrolling in your file.
But it got worse when I render text as text. See Application Preferences .. Graphics View .. Text Rendering.
Then it is even slower when the viewport gets highlighted, meaning with the cursor inside the viewport area.
I get 1fps when the viewport is selected and text is rendered as text.

I suspect the Text Width is an issue here.
When I set them all to zero, no column width, there is no noticeable lagging even with the settings and selection mentioned above.

PS: Here one can achieve the same appearances of the text in columns when we use 4 lines, center aligned horizontally.

Regards,
CVH

Re: Scrolling Slow in Layout Block

Posted: Wed May 10, 2023 3:19 pm
by RMK-Designs
Thank you CVH. I will check the settings you mentioned for text rendering.

Could you answer a couple of questions. What is the difference between render text as text and as path? I have seen this setting but was not sure what it did or if I needed it. Does this affect the look of text or the ability to select or work with the text? If rendered as a path, does it change anything?

I can certainly use 4 lines (or what is need) center aligned instead of text width. I knew it would be something simple to correct the issue I am having. Thank you for your help.

Re: Scrolling Slow in Layout Block

Posted: Wed May 10, 2023 3:58 pm
by CVH
RMK-Designs wrote:
Wed May 10, 2023 3:19 pm
What is the difference between render text as text and as path?
Well, not really sure.
I suppose that rendered as path is a solid filled outline on QCAD level and as text it is practically the same but on font level.
Probably rendered as text is handle by QT but that is a shot in the dark. :wink:

The look and feel is almost the same. A text entity remains a text entity with all properties associated with it.
This has more to do with how things are rendered to display ... Maybe to print.
On DXF file level they are exactly the same.
What I noticed is that rendered as path becomes rectangle shaped placeholders when zoomed out far.
While rendered as text will fade out at a certain zoom level until it disappears.

Regards,
CVH

Re: Scrolling Slow in Layout Block

Posted: Wed May 10, 2023 8:03 pm
by Husky
FYI:
andrew wrote:
Fri Jun 11, 2021 6:29 am
If text is rendered as paths, the paths are computed at a fixed size and displayed as polygons.

Re: Scrolling Slow in Layout Block

Posted: Thu May 11, 2023 6:02 am
by CVH
Husky wrote:
Wed May 10, 2023 8:03 pm
FYI:
Thank you Husky for looking up this information. :wink:
I wasn't really off with my assumption.

Odd that Andrew included this in the related topic:
andrew wrote:
Thu Jun 10, 2021 9:39 pm
Render text as paths
This might be slightly slower but seems to be also more precise under Windows.
While rendering as paths is usually a fix for slow representation.
Handling derived polygon's should be less demanding than handling the bunch of splines for each glyph in a text, each screen update.

Re: Scrolling Slow in Layout Block

Posted: Thu May 11, 2023 3:07 pm
by RMK-Designs
Thanks for the information. This suggestion did solve the issue. I just changed the application preference to render text as path and now the same file zooms in and out as expected. I did not even need to change all the text. Thank you for your help, this is why I like this software, any questions I have an answer can always be found quickly.