FacticiusVir / SharpVk

C# Bindings for the Vulkan API & SPIR-V
MIT License
147 stars 18 forks source link

Slow compile times #59

Open HildarTheDorf opened 4 years ago

HildarTheDorf commented 4 years ago

I'm experiencing slow compile times when using SharpVk (v0.4.2). The compiler appears to consuming copious amounts of RAM such that it spills swap/pagefile on Hello Triangle, which I don't normally experience with considerably larger solutions.

My assumption is that the compiler is struggling to handle the sheer number of optional parameters most SharpVk methods take. Would it be possible for the generator to emit overloads with less parameters for the more common use cases (e.g. for each method have an overload with no, or core-only, pNext structures and another with all the sundry extension structs)?

FacticiusVir commented 4 years ago

Interesting; I hadn't seen that but I'll certainly investigate. What OS, IDE & framework version are you using?

HildarTheDorf commented 4 years ago

This is with Ubuntu 19.10/VS Code(Microsoft C# extension)/Dotnet Core 3.1.101

FacticiusVir commented 4 years ago

Thanks; I'll run some tests and see if I can replicate the compile issues