Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity and CS:GO hangs when mat_queue_mode is set to 0 #2

Open
xyovanz opened this issue Aug 6, 2019 · 2 comments
Open

Unity and CS:GO hangs when mat_queue_mode is set to 0 #2

xyovanz opened this issue Aug 6, 2019 · 2 comments
Labels
bug Something isn't working workaround

Comments

@xyovanz
Copy link

xyovanz commented Aug 6, 2019

Workaround

mat_queue_mode 2

Problem

As said both Unity editor and CS:GO hang with no response when mat_queue_mode is 0. Eventually both apps become responsive for one frame, leaving CS:GO console like this:
image
Seting mat_queue_mode to -1 solves this. Not sure about other (1 and 2).

@dtugend dtugend transferred this issue from advancedfx/afx-unity-interop Aug 9, 2019
@dtugend dtugend transferred this issue from advancedfx/advancedfx Aug 16, 2019
@dtugend dtugend added bug Something isn't working wontfix This will not be worked on labels Aug 16, 2019
@dtugend
Copy link
Member

dtugend commented Aug 16, 2019

Thank you for the bug report.

I am not planning to fix it for the following reasons:

On multi core CPU systems the only problem is with mat_queue_mode 0, which means non-queued and non-threaded mode.

On single core CPU systems setting mat_queue_mode to 1 fixes it as well.

In general one can expect better performance with -1 on multi core systems, because the drawing and the engine thread of CS:GO are independent. The afx-unity-interop project leverages this on the Unity side as well, since it uses the LWRP, which is threaded by default too.

So I don't see any obvious advantage of using mat_queue_mode 0, apart from that it might bee required for Reshade inside CS:GO (you could try if reshade works with mat_queue_mode 1).

I will also add this to the documentation / ReadME.

@dtugend
Copy link
Member

dtugend commented Aug 16, 2019

Forgot to list an important reason:
You can switch the mat_queue_mode inside CS:GO while in-game, but I can't reflect that in Unity, since it would require a restart, it can not be switched while it's running.

@dtugend dtugend reopened this Nov 19, 2019
@dtugend dtugend added workaround and removed wontfix This will not be worked on labels Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working workaround
Projects
None yet
Development

No branches or pull requests

2 participants