Developer knowledge network · moderated exchange

Супольнасць UnreliableCode

Супольнасць распрацоўшчыкаў даследаванняў, зваротнага праектавання і кадавання

Knowledge indexжыць
4Categories
919Threads
2.8KПаведамленні
Guide

Entity distance filtering & spatial bounding for high-FPS overlays

sig_scanner_sam
Pattern Master
MEMBER
прадстаўнік: 210
Дата далучэння: Dec 2019
Паведамленні: 11
Дзякуй: 51
1 месяцаў таму · Jul 19, 2026 8:24 AM
#1

To prevent rendering lag in 60-player Battle Royale matches:

  1. Calculate squared distance (distSq = dx*dx + dy*dy + dz*dz) instead of using expensive sqrtf on distant entities.
  2. Skip bone matrix reads entirely for entities further than 250 meters away (just draw simple distance label or 2D box).
  3. Only compute full 16-bone skeleton for targets within active combat range (< 150m).

Reduces memory read bandwidth by 85% per frame!

ptr_arithmetic
C++ Wizard
MEMBER
прадстаўнік: 162
Дата далучэння: May 2018
Паведамленні: 73
Дзякуй: 42
1 месяцаў таму · Jul 19, 2026 11:32 AM
#2

Using distSq avoids millions of square root calculations per second. Classic game optimization technique.

matrix_math_guy
Math Specialist
MEMBER
прадстаўнік: 105
Дата далучэння: Aug 2018
Паведамленні: 52
Дзякуй: 41
1 месяцаў таму · Jul 20, 2026 6:57 AM
#3

Great optimization tip. Overlay maintains solid 240 FPS even in hot drop zones.