MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / init_game_ia_loop

Function init_game_ia_loop

modules/benchmarks/src/ia_loop.rs:418–427  ·  view source on GitHub ↗
(ctx: &ReducerContext, initial_load: u32)

Source from the content-addressed store, hash-verified

416
417#[spacetimedb::reducer]
418pub fn init_game_ia_loop(ctx: &ReducerContext, initial_load: u32) {
419 let load = Load::new(initial_load);
420
421 insert_bulk_position(ctx, load.biggest_table);
422 insert_bulk_velocity(ctx, load.big_table);
423 update_position_all(ctx, load.biggest_table);
424 update_position_with_velocity(ctx, load.big_table);
425
426 insert_world(ctx, load.num_players as u64);
427}
428
429#[spacetimedb::reducer]
430pub fn run_game_ia_loop(ctx: &ReducerContext, initial_load: u32) {

Callers

nothing calls this directly

Calls 6

insert_bulk_positionFunction · 0.85
insert_bulk_velocityFunction · 0.85
update_position_allFunction · 0.85
insert_worldFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…