X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=progsvm.h;h=dc83dd8b1d61e960877c22938f70b8541440fe6b;hb=c48a6c4e52030e0b2dcf8e410737e1c5cb1d165d;hp=dc7f192a4a5f3a581ca3dadceefefb2a04476909;hpb=10a42a2a078ecd51b32d35a5cc873ed8176f5a07;p=xonotic%2Fdarkplaces.git diff --git a/progsvm.h b/progsvm.h index dc7f192a..dc83dd8b 100644 --- a/progsvm.h +++ b/progsvm.h @@ -44,6 +44,7 @@ typedef struct prvm_stack_s { int s; mfunction_t *f; + double tprofile_acc; double profile_acc; double builtinsprofile_acc; } prvm_stack_t; @@ -187,9 +188,9 @@ typedef struct prvm_prog_fieldoffsets_s int dimension_hit; // ssqc / csqc int dimension_solid; // ssqc / csqc int disableclientprediction; // ssqc + int discardabledemo; // ssqc int dphitcontentsmask; // ssqc / csqc int drawonlytoclient; // ssqc - int effects; // ssqc / csqc int exteriormodeltoclient; // ssqc int fatness; // ssqc / csqc int forceshader; // csqc @@ -268,6 +269,17 @@ typedef struct prvm_prog_fieldoffsets_s int movedir; // ssqc / csqc (physics) int camera_transform; // csqc (warpzones) + + int userwavefunc_param0; // csqc (userwavefunc) + int userwavefunc_param1; // csqc (userwavefunc) + int userwavefunc_param2; // csqc (userwavefunc) + int userwavefunc_param3; // csqc (userwavefunc) + + int crypto_keyfp; // svqc (crypto) + int crypto_mykeyfp; // svqc (crypto) + int crypto_idfp; // svqc (crypto) + int crypto_encryptmethod; // svqc (crypto) + int crypto_signmethod; // svqc (crypto) } prvm_prog_fieldoffsets_t; @@ -282,6 +294,8 @@ typedef struct prvm_prog_globaloffsets_s int v_right; // ssqc / csqc int v_up; // ssqc / csqc int view_angles; // csqc + int view_punchangle; // csqc + int view_punchvector; // csqc int trace_allsolid; // ssqc / csqc int trace_startsolid; // ssqc / csqc int trace_fraction; // ssqc / csqc @@ -317,6 +331,11 @@ typedef struct prvm_prog_globaloffsets_s int gettaginfo_right; // ssqc / csqc int gettaginfo_up; // ssqc / csqc int transparent_offset; // csqc + + int particles_alphamin; // csqc + int particles_alphamax; // csqc + int particles_colormin; // csqc + int particles_colormax; // csqc } prvm_prog_globaloffsets_t; @@ -359,6 +378,7 @@ typedef struct prvm_prog_funcoffsets_s func_t m_keyup; // mqc func_t m_shutdown; // mqc func_t m_toggle; // mqc + func_t m_newmap; // mqc } prvm_prog_funcoffsets_t; @@ -580,7 +600,7 @@ void *_PRVM_Alloc (size_t buffersize, const char *filename, int fileline); void _PRVM_Free (void *buffer, const char *filename, int fileline); void _PRVM_FreeAll (const char *filename, int fileline); -void PRVM_Profile (int maxfunctions, int mininstructions, int sortby); +void PRVM_Profile (int maxfunctions, double mintime, int sortby); void PRVM_Profile_f (void); void PRVM_ChildProfile_f (void); void PRVM_CallProfile_f (void);