formatting
This commit is contained in:
parent
db5db23426
commit
4675a22292
@ -167,24 +167,24 @@ Struct(SharedUserState)
|
|||||||
Client *user_blended_client; /* Contains single snapshot from result of blending local sim snapshots */
|
Client *user_blended_client; /* Contains single snapshot from result of blending local sim snapshots */
|
||||||
Snapshot *ss_blended; /* Points to blended snapshot contained in blended client */
|
Snapshot *ss_blended; /* Points to blended snapshot contained in blended client */
|
||||||
|
|
||||||
/* Usage stats */
|
//- Usage stats
|
||||||
i64 last_second_reset_ns;
|
i64 last_second_reset_ns;
|
||||||
SecondsStat net_bytes_read;
|
SecondsStat net_bytes_read;
|
||||||
SecondsStat net_bytes_sent;
|
SecondsStat net_bytes_sent;
|
||||||
|
|
||||||
/* Gpu resources */
|
//- Gpu resources
|
||||||
GPU_RenderSig *render_sig;
|
GPU_RenderSig *render_sig;
|
||||||
|
|
||||||
BindState bind_states[BindKind_Count];
|
BindState bind_states[BindKind_Count];
|
||||||
|
|
||||||
/* Debug camera */
|
//- Debug camera
|
||||||
EntityId debug_following;
|
EntityId debug_following;
|
||||||
b32 debug_camera;
|
b32 debug_camera;
|
||||||
b32 debug_camera_panning;
|
b32 debug_camera_panning;
|
||||||
Vec2 debug_camera_pan_start;
|
Vec2 debug_camera_pan_start;
|
||||||
b32 debug_draw;
|
b32 debug_draw;
|
||||||
|
|
||||||
/* Debug console */
|
//- Debug console
|
||||||
P_Mutex console_logs_mutex;
|
P_Mutex console_logs_mutex;
|
||||||
Arena *console_logs_arena;
|
Arena *console_logs_arena;
|
||||||
ConsoleLog *first_console_log;
|
ConsoleLog *first_console_log;
|
||||||
@ -193,11 +193,11 @@ Struct(SharedUserState)
|
|||||||
f32 console_logs_height;
|
f32 console_logs_height;
|
||||||
b32 debug_console;
|
b32 debug_console;
|
||||||
|
|
||||||
/* Window -> user */
|
//- Window -> user
|
||||||
P_Mutex sys_window_events_mutex;
|
P_Mutex sys_window_events_mutex;
|
||||||
Arena *sys_window_events_arena;
|
Arena *sys_window_events_arena;
|
||||||
|
|
||||||
/* User -> local sim */
|
//- User -> sim
|
||||||
P_Mutex user_sim_cmd_mutex;
|
P_Mutex user_sim_cmd_mutex;
|
||||||
ControlData user_sim_cmd_control;
|
ControlData user_sim_cmd_control;
|
||||||
EntityId user_hovered_ent;
|
EntityId user_hovered_ent;
|
||||||
@ -207,14 +207,14 @@ Struct(SharedUserState)
|
|||||||
Atomic32 user_paused;
|
Atomic32 user_paused;
|
||||||
Atomic32 user_paused_steps;
|
Atomic32 user_paused_steps;
|
||||||
|
|
||||||
/* Local sim -> user */
|
//- Sim -> user
|
||||||
P_Mutex local_to_user_client_mutex;
|
P_Mutex local_to_user_client_mutex;
|
||||||
ClientStore *local_to_user_client_store;
|
ClientStore *local_to_user_client_store;
|
||||||
Client *local_to_user_client;
|
Client *local_to_user_client;
|
||||||
i64 local_to_user_client_publish_dt_ns;
|
i64 local_to_user_client_publish_dt_ns;
|
||||||
i64 local_to_user_client_publish_time_ns;
|
i64 local_to_user_client_publish_time_ns;
|
||||||
|
|
||||||
/* Rolling window of local sim -> user publish time deltas */
|
//- Local sim -> user rolling window of publish time deltas
|
||||||
i64 last_local_to_user_snapshot_published_at_ns;
|
i64 last_local_to_user_snapshot_published_at_ns;
|
||||||
i64 average_local_to_user_snapshot_publish_dt_ns;
|
i64 average_local_to_user_snapshot_publish_dt_ns;
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ Struct(SharedUserState)
|
|||||||
i64 real_dt_ns;
|
i64 real_dt_ns;
|
||||||
i64 real_time_ns;
|
i64 real_time_ns;
|
||||||
|
|
||||||
/* Per-frame */
|
//- Per frame
|
||||||
|
|
||||||
Vec2 screen_size;
|
Vec2 screen_size;
|
||||||
Vec2 screen_cursor;
|
Vec2 screen_cursor;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user