Skip to content
Snippets Groups Projects

Backport SRB2 2.2's PK3 loader code fixes

Merged X.organic requested to merge X.organic/Kart-Public:futurepk3 into next
  1. Aug 23, 2022
  2. Aug 22, 2022
    • X.organic's avatar
      Fix a performance regression in query functions · f92c5b96
      X.organic authored
      This commit brings back the old code for W_CheckNumForNamePwad, using memcmp
      instead of strncmp, which is readily inlined by modern C compilers and has
      more acceptable performance in P_AddWadFile. Also removes some redundant
      strlens, saving the result of one call instead.
      
      This commit increases this branch's distance from SRB2 2.2, per Ashnal
      and SteelT's note that I shouldn't worry too much about it, especially
      when there's performance on the line.
      Verified
      f92c5b96
  3. Aug 21, 2022
  4. Aug 20, 2022
  5. Aug 16, 2022
Loading