Call trap_GetCurrentCmdNumber only once per frame#2684
Call trap_GetCurrentCmdNumber only once per frame#2684slipher merged 2 commits intoUnvanquished:masterfrom
Conversation
|
I tested by replacing each access of |
|
Sadly I did not read #2660 first and created a duplicate version of one of the commits |
illwieckz
left a comment
There was a problem hiding this comment.
I haven' tested the patch but it is very similar to one I wrote.
LGTM
When I commit a modified version of a code someone else wrote I usually add a |
|
cgame is not my area, but from my little knowledge, the code seems fine. I'd appreciate it if we could have some informations about the risks. I know we're not using that much, but I also think the value should have a default value, C++11-style. Here, it might (I said, I don't know the cgame area, right) be un-init. And if I'm wrong, I might become true in the future. |
|
This optimization is pretty safe. I doubt we can set a meaningful default value to this variable. |
|
Well I didn't modify yours; I independently rediscovered it 😆
As part of the |
No description provided.