rabukasim / engine_rust_src /src /size_test.rs
trioskosmos's picture
Upload folder using huggingface_hub
463f868 verified
#![cfg(feature = "gpu")]
use crate::core::gpu_state::GpuGameState;
#[test]
fn test_state_size() {
println!("GpuGameState size: {}", std::mem::size_of::<GpuGameState>());
// Size is 1904 bytes: 2 * 672 (GpuPlayerState) + 320 (game state fields + trigger queue) + 240 (interaction stack)
assert_eq!(std::mem::size_of::<GpuGameState>(), 1936);
}