tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
551 stars 95 forks source link

Slowing typing performance #183

Open xoyojank opened 4 years ago

xoyojank commented 4 years ago

image

VS2017 Professional, Edit UnrealEngine usf files

tgjones commented 4 years ago

Please could you try disabling all auto-formatting for HLSL - as in the attached screenshot - and see if it fixes the performance problem?

image

jamiehayes commented 2 years ago

Hi, Tim! I'm also getting rough typing performance from this plugin in VS 2022 in Unreal Engine 5 projects. Often just adding a newline to a shader will cause VS to pop up this box, followed by the warning toast at the top that the HLSL Tools plugin is causing slow typing performance.

image

I have disabled formatting when typing/paste, Intellisense, and error reporting, but the issue doesn't go away. It's a shame, because I do really like the plugin, but the typing perf is going to be the reason I have to uninstall it.

Let me know if there's any other data I can provide to help you reproduce and fix the issue! Would love to get a new drop that fixes this.

-Jamie

DFMattE commented 3 days ago

Agreed, default shader editing in Unreal Engine 5 usf/ush files is slow and can make typing difficult. For example, holding space down has a noticeable delay between auto-repeating spaces.

Turning off "Auto list members" in the HLSL > General settings improves the typing speed significantly, though there are still occasional delays that only go away when the plugin is disabled.