CUP_R_MLRS_DPICM ammo creates 400 submunitions causing major lag
Needs Review, Needs TriagePublic

Description

Here is some perf tracking from when I believe 3 MLRS DPICM rockets were fired: https://i.imgur.com/qV3EZq1.png

CfgAmmo config:

class CUP_R_MLRS_DPICM: R_230mm_HE
	{
		submunitionAmmo = "CUP_R_MLRS_DPICM_fly";
		triggerDistance = 300;
		submunitionConeType[] = {"randomcenter",400};
		submunitionConeAngle = 20;
		model = "\A3\Weapons_F\Ammo\Missile_AA_02_fly_F.p3d";
		soundFly[] = {"A3\Sounds_F\weapons\Rockets\rocket_fly_1",6,1,500};
		whistleDist = 100;
	};

Vanilla cluster rockets use 50 submunitions:

class R_230mm_Cluster: R_230mm_HE
    {
        triggerDistance = 250;
        triggerSpeedCoef[] = {0.5, 1};
        submunitionConeAngle = 19;
        submunitionConeType[] = {"randomcenter", 50};
        submunitionAmmo[] = {"Mo_cluster_AP", 0.93, "Mo_cluster_AP_UXO_deploy", 0.07};
    };

Details

Affected classnames
CUP_R_MLRS_DPICM
Branch
Release/Stable
Reproducable without other mods?
Yes
JonBons created this task.Tue, Apr 30, 7:24 PM