DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
336 stars 187 forks source link

Performance Issue report from DynamoRevit 2.6.1.8786 #2674

Open RE4LLY-ME opened 3 years ago

RE4LLY-ME commented 3 years ago

Issue Description

When launching Dynamo through Revit 2021.1.2 navigation in any project even empty is very laggy in both the node and 3D view. These issues are not present in the latest Sandbox mode of Dynamo though. Harware Specs shown below; issue is more noticable on my 4k monitor compared to my 1080p monitor at the same refresh rate.

What did you do?

Just open an empty dynamo project through Revit and added a random node and moved the view arround.

What did you expect to see?

Smooth motion

What did you see instead?

very laggy motion that took up to a second to update positions of nodes in the view

What packages or external references (if any) were used?

none used, fresh install


GPU: RTX 3080 CPU: Intel i9 10850k @4.9 gHz RAM: 32GB @3600mHz Screen: 4k Samsung Monitor OS: Microsoft Windows NT 10.0.19041.0 CLR: 4.0.30319.42000 Dynamo: 2.6.1.8786

github-actions[bot] commented 3 years ago

Hello RE4LLY-ME, thank you for submitting this issue! We are super excited that you want to help us make Dynamo all that it can be. However, we need some more information in order for the Dynamo team to investigate any further.

Can you please fill in the following to the best of your ability:

Additional information:

RE4LLY-ME commented 3 years ago

Version number and Windows Version as described in the original post.

Amoursol commented 3 years ago

Thanks for submitting this @RE4LLY-ME - as you can see our automated bot covers all context generally 😊

@mjkkirschner @QilongTang - any thoughts on this?

mjkkirschner commented 3 years ago

It sounds like WPF in revit is using software rendering mode - you can check the dynamo console in sandbox and revit - it should report the wpf render mode (software or default)

RE4LLY-ME commented 3 years ago

Just checked and it indeed says "WPF Render Mode: SoftwareOnly" in the Revit version. Is there a way to change that?

QilongTang commented 3 years ago

Just checked and it indeed says "WPF Render Mode: SoftwareOnly" in the Revit version. Is there a way to change that?

Would you go to Revit file -> options -> Hardware to see if hardware acceleration can be turned on? Usually this would address performance issues

image

RE4LLY-ME commented 3 years ago

Hardware acceleration has always been turned on. I also just tested with my old graphics card a gtx 970 but the issue still exists with both cards with hardware acceleration on.

RE4LLY-ME commented 3 years ago

I did some more testing with another computer and there the issue is also present. Furthermore I recorded two quick clips, one showing Dynamo Sandbox running like I expect it and the other one running Dynamo Revit with the laggy Nodes which is the same behaviour I see in the 3D View as well. I also attach the two log files for the sessions. DynamoRevit-dynamoLog_e3f6e3f1-2204-4818-8f6b-f6f599cf50f4.txt DynamoSandbox-ynamoLog_aef1d066-dd9f-43be-bd57-7c9e231d1504.txt

Dynamo Revit Clip: https://user-images.githubusercontent.com/73043838/106948668-e77a4b80-6723-11eb-8c7d-619ac45f4ed1.mp4

Dynamo Sandbox Clip: https://user-images.githubusercontent.com/73043838/106948686-ec3eff80-6723-11eb-8476-f0a8fbbce8e7.mp4

Amoursol commented 3 years ago

Any further thoughts on this @QilongTang ?

mjkkirschner commented 3 years ago

it's my memory that Revit disables wpf hardware acceleration for all add-ins. That is something we should check with the Revit team on.

QilongTang commented 3 years ago

Let me share this issue to Revit team. Also FYI: @ZiyunShang This may be an issue our team move to DynamoRevit repo later

github-actions[bot] commented 3 years ago

FYI: @DynamoDS/dynamo

t-chenji commented 3 years ago

@RE4LLY-ME I was unable to reproduce this performance issue on R2021.1.2 4K monitor. Could you provide some operating steps or videos?

RE4LLY-ME commented 3 years ago

@t-chenji Sure, essentially the video I provided in my last post already shows all that I did. But I here's a list of steps that I took:

  1. Launch Revit 2021.1.2 (with or without admin privileges no change)
  2. Open new empty project
  3. Open Dynamo in Revit
  4. Open new empty Dynamo File
  5. Create any node
  6. Notice a slow response when moving all nodes around with middle mouse button to navigate through the workspace. (As can be seen in the video above and this lag is also noticeable when navigating in the 3D space)

Also as I mentioned in a post above it happens on other machines too which do not have a 4k screen so my original suspicion with that might not be corrected.

mjkkirschner commented 3 years ago

@RE4LLY-ME apologies if you've already tried this - if you try using the nvdia control panel to force high performance mode for revit.exe - that might work - I note that your CPU does have an integrated gpu.

RE4LLY-ME commented 3 years ago

@mjkkirschner No need for apologies, I'm glad you are all looking into it. But I did indeed already try that, I forced high performance for Revit and also for all programs in the Nvidia control panel but both did not result in any improvement with the performance.

And yes it does have an IGD but by default it's turned off in the bios. I did already enable it once to test the performance but saw no improvement either. Might look into it again though.

t-chenji commented 3 years ago

@RE4LLY-ME Thank you. I reproduced this issue using the middle mouse button.

I used two machines to test, one 4K monitor can reproduce this issue in D4R 2.6.1, and the other machine that was not a 4K monitor cannot reproduce this issue in D4R 2.6.1. In addition, in the latest D4R version 2.10.1, both 4K and non-4K screens cannot reproduce this performance issue. Judging from the test results, this issue has been fixed in the latest Dynamo.

fromatron commented 2 years ago

Uninstall Revit add-ins.

Uninstalling PyRevit fixed my Dynamo lag issue