Created attachment 63969 [details] Comparison of shader compile times between mesa and nvidia driver Shader optimizer is extremely slow and causes games like Crysis that loads content while playing to go very slow or freeze temporarily On nvidia proprietary driver sometimes compiling is even 200x faster
Created attachment 63970 [details] Profiler output while running a programm that continously compiles shaders
Looks like most of the time is being spent in ir_expression/etc -- these are generic mesa glsl facilities. Please retest this with the latest mesa, I suspect that improvements have been made. If you still think it's slow, feel free to file a bug with the core mesa team. I don't see anything nouveau-specific about this issue. Also, please use perf for the measurements, it can see inside the kernel, which may relevant (that 16% chunk inside the kernel seems high).
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.