-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Qt: allow to disable logging to the log frame while it is hidden #18039
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
base: master
Are you sure you want to change the base?
Conversation
|
I think you should not take the log panel's visibility for account and and make it accessible fom the log panel context menu. |
|
Which visibility should then be used? |
|
None, the option should allow disabling log writeout while the panel is still visible as well. Depending on visibility is a bad idea imo. What you don't see -> you are inherently not aware of. If you see that the log panel is stagnant, you are very aware that UI logging disabled. And If you want to hide the log panel, it should not affect its functionality at all. This matters if you keep the whole log history in UI and not just limit 1000 lines. |
|
Well then there's no need to add the option, because you can already select the log level to prevent writes |
|
The idea was to be able to stay on something like notice without having to change the log level before hiding the frame |
|
IMO the log panel is already offering all the choices to users. If the panel is hidden then possibly try to avoid any overhead on log handling (e.g. any log request on GUI is simply discarded (and lost) until the panel is set to visible. But possibly this is already done (I never put my eyes on that module) |
|
No it's not. That's what this PR is for |
|
understood. At the end this is what an FR was requesting more; just avoid some overhead due to log in favor of some performance boost if the system/running game is stable |
|
but isn't |
|
I have no idea what you're talking about |
|
Silence all logs disables logging in general. That has nothing to do with the log frame, which is simply a textbox that displays what's written to file. In current master, you always write to that textbox, even if it's hidden. |
|
Ok but isn't it enough to simply rename |
|
Silence All Logs prevents logging in general while a game is running. This has NOTHING to do with the log frame textbox. |

Previously all messages were printed to the log frame unless filtered by log level, even if hidden.
Now we only print "always" or "fatal" messages while the log frame is hidden and the option is deactivated (default).
This means that you should get a tiny relieve on the CPU while you hide the log frame and the option is deactivated,
unless you already put the log level to always or fatal.