Skip to content

Migrate some cl_ cvars#1974

Open
slipher wants to merge 5 commits into
DaemonEngine:masterfrom
slipher:cvarcl
Open

Migrate some cl_ cvars#1974
slipher wants to merge 5 commits into
DaemonEngine:masterfrom
slipher:cvarcl

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented May 29, 2026

Migrate the majority of cl_ cvars to new-style cvars.

Other notable changes:

  • Remove redundant attempt to detect alt-tab
  • Make cl_noprint more useful: make it possible to disable only the in-game logging that goes over the 3d rendering without also disabling logging in the console.

slipher added 5 commits May 27, 2026 17:54
Don't check for alt-tab/command-tab. The OS handles this.  This seems to
be a relic of SDL 1.x where it would apparently block window manager
shortcuts in full-screen mode on Linux
(https://stackoverflow.com/questions/14846370/how-to-create-alttab-friendly-fullscreen-programs-like-games-in-linux).
Old behavior: setting cl_noprint disables showing log message both in
game, and in the drop-down console.
Now cl_noprint 1 only disables the in-game messages. This seems more
useful to me - you can disable unwanted messages for screenshots, but
without making the logs inaccessible in the console. But cl_noprint 2
can be used for the old behavior.

Also migrate the cvar.
The AVI framerate is fixed, so don't change the recording rate in
response to later cl_aviFrameRate changes.
Tiny bug fix: cl_consoleFontSize was read as a float in one place but
the font size is always created with an integer value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant