mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
In DNCOORDS display, show execution time in ms for all actors (G_MoveActors).
Smoothed using an exponential moving average... with a time constant of 1 sec if I didn't miscalculate things. Also, split BYTEVERSION_JF into Lunatic and non-Lua. git-svn-id: https://svn.eduke32.com/eduke32@3947 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b243264d6b
commit
e76348cc4b
3 changed files with 19 additions and 2 deletions
|
@ -8251,6 +8251,7 @@ int32_t A_CheckSwitchTile(int32_t i)
|
||||||
|
|
||||||
void G_MoveWorld(void)
|
void G_MoveWorld(void)
|
||||||
{
|
{
|
||||||
|
extern double g_moveActorsTime;
|
||||||
int32_t k = MAXSTATUS-1;
|
int32_t k = MAXSTATUS-1;
|
||||||
|
|
||||||
do
|
do
|
||||||
|
@ -8285,8 +8286,14 @@ void G_MoveWorld(void)
|
||||||
G_MoveFallers(); //ST 12
|
G_MoveFallers(); //ST 12
|
||||||
G_MoveMisc(); //ST 5
|
G_MoveMisc(); //ST 5
|
||||||
|
|
||||||
|
{
|
||||||
|
double t = gethiticks();
|
||||||
|
|
||||||
G_MoveActors(); //ST 1
|
G_MoveActors(); //ST 1
|
||||||
|
|
||||||
|
g_moveActorsTime = (1-0.033)*g_moveActorsTime + 0.033*(gethiticks()-t);
|
||||||
|
}
|
||||||
|
|
||||||
// XXX: Has to be before effectors, in particular movers?
|
// XXX: Has to be before effectors, in particular movers?
|
||||||
// TODO: lights in moving sectors ought to be interpolated
|
// TODO: lights in moving sectors ought to be interpolated
|
||||||
G_DoEffectorLights();
|
G_DoEffectorLights();
|
||||||
|
|
|
@ -57,7 +57,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#define VOLUMEONE (g_Shareware == 1)
|
#define VOLUMEONE (g_Shareware == 1)
|
||||||
|
|
||||||
// increase by 3, because atomic GRP adds 1, and Shareware adds 2
|
// increase by 3, because atomic GRP adds 1, and Shareware adds 2
|
||||||
#define BYTEVERSION_JF 279
|
#ifdef LUNATIC
|
||||||
|
// Lunatic
|
||||||
|
# define BYTEVERSION_JF 279
|
||||||
|
#else
|
||||||
|
// Non-Lua build
|
||||||
|
# define BYTEVERSION_JF 279
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BYTEVERSION_13 27
|
#define BYTEVERSION_13 27
|
||||||
#define BYTEVERSION_14 116
|
#define BYTEVERSION_14 116
|
||||||
|
|
|
@ -109,6 +109,8 @@ static const char *CommandName = NULL;
|
||||||
int32_t g_forceWeaponChoice = 0;
|
int32_t g_forceWeaponChoice = 0;
|
||||||
int32_t g_fakeMultiMode = 0;
|
int32_t g_fakeMultiMode = 0;
|
||||||
|
|
||||||
|
double g_moveActorsTime = 0; // in ms, smoothed
|
||||||
|
|
||||||
char boardfilename[BMAX_PATH] = {0}, currentboardfilename[BMAX_PATH] = {0};
|
char boardfilename[BMAX_PATH] = {0}, currentboardfilename[BMAX_PATH] = {0};
|
||||||
|
|
||||||
static char g_rootDir[BMAX_PATH];
|
static char g_rootDir[BMAX_PATH];
|
||||||
|
@ -2542,6 +2544,8 @@ static void G_PrintCoords(int32_t snum)
|
||||||
y += 7;
|
y += 7;
|
||||||
Bsprintf(tempbuf,"VR=%.03f YX=%.03f",(double)dr_viewingrange/65536.0,(double)dr_yxaspect/65536.0);
|
Bsprintf(tempbuf,"VR=%.03f YX=%.03f",(double)dr_viewingrange/65536.0,(double)dr_yxaspect/65536.0);
|
||||||
printext256(x,y+72,31,-1,tempbuf,0);
|
printext256(x,y+72,31,-1,tempbuf,0);
|
||||||
|
Bsprintf(tempbuf, "MOVEACTORS [ms]= %.3e", g_moveActorsTime);
|
||||||
|
printext256(x,y+81,31,-1,tempbuf,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue