mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
only call Cbuf_ExecuteStack when the buffer has anything to execute. this
gives an ~1.1% boost to overkill.
This commit is contained in:
parent
33e055209e
commit
25ebab2e09
1 changed files with 6 additions and 3 deletions
|
@ -589,8 +589,11 @@ Cbuf_Execute (void)
|
|||
}
|
||||
Cbuf_ExecuteStack (t->cbuf);
|
||||
}
|
||||
if (cmd_keybindbuffer->buffer->str[0] || cmd_keybindbuffer->next)
|
||||
Cbuf_ExecuteStack (cmd_keybindbuffer);
|
||||
if (cmd_consolebuffer->buffer->str[0] || cmd_consolebuffer->next)
|
||||
Cbuf_ExecuteStack (cmd_consolebuffer);
|
||||
if (cmd_legacybuffer->buffer->str[0] || cmd_legacybuffer->next)
|
||||
Cbuf_ExecuteStack (cmd_legacybuffer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue