2020-10-10 18:08:24 +00:00
|
|
|
// SONIC ROBO BLAST 2
|
|
|
|
//-----------------------------------------------------------------------------
|
2020-10-29 14:04:25 +00:00
|
|
|
// Copyright (C) 2020 by Sonic Team Junior.
|
2020-10-10 18:08:24 +00:00
|
|
|
//
|
|
|
|
// This program is free software distributed under the
|
|
|
|
// terms of the GNU General Public License, version 2.
|
|
|
|
// See the 'LICENSE' file for more details.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
/// \file m_perfstats.h
|
|
|
|
/// \brief Performance measurement tools.
|
|
|
|
|
|
|
|
#ifndef __M_PERFSTATS_H__
|
|
|
|
#define __M_PERFSTATS_H__
|
|
|
|
|
|
|
|
#include "doomdef.h"
|
|
|
|
#include "lua_script.h"
|
|
|
|
#include "p_local.h"
|
|
|
|
|
2020-11-07 09:32:59 +00:00
|
|
|
extern precise_t ps_tictime;
|
2020-10-10 18:08:24 +00:00
|
|
|
|
2020-11-07 09:32:59 +00:00
|
|
|
extern precise_t ps_playerthink_time;
|
|
|
|
extern precise_t ps_thinkertime;
|
2020-10-10 18:08:24 +00:00
|
|
|
|
2020-11-07 09:32:59 +00:00
|
|
|
extern precise_t ps_thlist_times[];
|
2020-10-10 18:08:24 +00:00
|
|
|
|
2020-11-07 09:32:59 +00:00
|
|
|
extern int ps_checkposition_calls;
|
2020-10-10 18:08:24 +00:00
|
|
|
|
2020-11-07 09:32:59 +00:00
|
|
|
extern precise_t ps_lua_thinkframe_time;
|
|
|
|
extern int ps_lua_mobjhooks;
|
2020-10-10 18:08:24 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
UINT32 time_taken;
|
|
|
|
char short_src[LUA_IDSIZE];
|
|
|
|
} ps_hookinfo_t;
|
|
|
|
|
|
|
|
void PS_SetThinkFrameHookInfo(int index, UINT32 time_taken, char* short_src);
|
|
|
|
|
|
|
|
void M_DrawPerfStats(void);
|
|
|
|
|
2020-10-10 19:23:33 +00:00
|
|
|
#endif
|