MetaHookSv icon indicating copy to clipboard operation
MetaHookSv copied to clipboard

[Renderer] Worse performance than on vanilla version

Open di57inct opened this issue 3 years ago • 8 comments

Connected to a local dedicated server(NOT listenserver/new game). GPU: AMD RX580 8gb CPU: AMD Ryzen 5 1500X Captură de ecran 2022-10-18 185623 Captură de ecran 2022-10-18 190903 Captură de ecran 2022-10-18 185733 Captură de ecran 2022-10-18 190736

di57inct avatar Oct 18 '22 16:10 di57inct

Forgot to mention the screenshots were taken on the same server in the exact same conditions(corner of fy_snow map with default 31 player models). If you need more info, please ask.

di57inct avatar Oct 21 '22 18:10 di57inct

Forgot to mention the screenshots were taken on the same server in the exact same conditions(corner of fy_snow map with default 31 player models). If you need more info, please ask.

so there are 31 players on the screenshot?

hzqst avatar Oct 22 '22 01:10 hzqst

Yup

di57inct avatar Oct 22 '22 14:10 di57inct

That is because every player model was rendered multiple times for shadow map generation or what. Try disabling r_shadow.

hzqst avatar Oct 23 '22 05:10 hzqst

Will try. If the big performance impact is because of the shadow maps, can you make a cvar to have player/other non-bsp entities optional?

di57inct avatar Oct 23 '22 10:10 di57inct

Tested. r_shadow 0. Game restarted. Same performance. Captură de ecran 2022-10-26 134944 Captură de ecran 2022-10-26 135039

di57inct avatar Oct 26 '22 10:10 di57inct

Could it be BulletPhysics.dll that hurts the performance? the physics calculation is pretty damn heavy with 32 kinematic objects there.

hzqst avatar Jan 07 '23 11:01 hzqst

Confirming. As soon as I disabled BP, performance was almost unaffected. Shouldn't BP not calculate collisions while ragdoll belongs to alive player? image

di57inct avatar Jan 07 '23 13:01 di57inct