]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_comp.h
we cannot skip the next 3 vars after encounting a vector - so we instead have to...
[xonotic/darkplaces.git] / pr_comp.h
index 5fd9f0485149fa29ddf1dab704c9abc59fa3c21d..45cc9f13b538254245620e93a4454c917e41edd4 100644 (file)
--- a/pr_comp.h
+++ b/pr_comp.h
@@ -153,7 +153,7 @@ typedef struct dfunction_s
        int             s_file;                 // source file defined in
 
        int             numparms;
-       qbyte   parm_size[MAX_PARMS];
+       unsigned char   parm_size[MAX_PARMS];
 }
 dfunction_t;
 
@@ -163,15 +163,20 @@ typedef struct mfunction_s
        int             parm_start;
        int             locals;                         // total ints of parms + locals
 
-       int             profile;                // runtime
-       int             builtinsprofile; // cost of builtin functions called by this function
-       int             callcount; // times the functions has been called since the last profile call
+       // these are doubles so that they can count up to 54bits or so rather than 32bit
+       double  profile;                // runtime
+       double  builtinsprofile; // cost of builtin functions called by this function
+       double  callcount; // times the functions has been called since the last profile call
+       double  totaltime; // total execution time of this function DIRECTLY FROM THE ENGINE
+       double  profile_total;          // runtime
+       double  builtinsprofile_total; // cost of builtin functions called by this function
+       int     recursion;
 
        int             s_name;
        int             s_file;                 // source file defined in
 
        int             numparms;
-       qbyte   parm_size[MAX_PARMS];
+       unsigned char   parm_size[MAX_PARMS];
 }
 mfunction_t;