Add player path tracing in minimap.

This commit is contained in:
Mari the Deer 2023-12-07 23:17:27 +01:00
commit 13b2cb53b3
10 changed files with 166 additions and 4 deletions

View file

@ -46,6 +46,13 @@ Class SWWMHandler : EventHandler
// corruption cards stuff
ui bool incardmenu, cardmessaged;
// ring buffer for player path tracing in minimap
const MAX_TRACED_BUFSZ = 8192;
transient ui Vector2 traced_steps[MAX_TRACED_BUFSZ];
transient ui int traced_steppos, traced_stepnum;
transient ui Vector2 oldplayerpos;
transient ui bool do_trace_steps;
enum EProfileTimer
{
PT_WORLDTICK,