mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 08:20:40 +00:00
don't let gcc automaticly inline functions but make gcc inline bigger
functions when told to. also make gcc warn if it can't inline a function. Explicitly inline several functions (including moving VectorNormalize to mathlib.h so it /can/ be) resulting in a 5.5% speedup for spam2 (88 to 92 fps)
This commit is contained in:
parent
b88d275994
commit
7ead5a91f8
12 changed files with 62 additions and 61 deletions
|
@ -135,8 +135,7 @@ Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex)
|
|||
void
|
||||
Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator)
|
||||
{
|
||||
byte *p;
|
||||
int i, j, len, size, version, numframes, start, end, total;
|
||||
int i, j, size, version, numframes, start, end, total;
|
||||
dtriangle_t *pintriangles;
|
||||
daliasframetype_t *pframetype;
|
||||
daliasskintype_t *pskintype;
|
||||
|
@ -151,8 +150,7 @@ Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator)
|
|||
extra = 1; // extra precision bytes
|
||||
|
||||
CRC_Init (&crc);
|
||||
for (len = qfs_filesize, p = buffer; len; len--, p++)
|
||||
CRC_ProcessByte (&crc, *p);
|
||||
CRC_ProcessBlock (buffer, &crc, qfs_filesize);
|
||||
|
||||
start = Hunk_LowMark ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue