• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Only render in region?

Status
Not open for further replies.
Level 7
Joined
Sep 24, 2008
Messages
281
I'm developing a TPS, (Station 12) but FPS is slowing significantly when looking towards the center of the map. Are there any tricks to boost FPS? Right now, the only action I've taken is camera far clip, but it doesn't seem to do much.
 
Level 5
Joined
Jul 10, 2010
Messages
124
well this problem plagued the performance of a lot of MMO's, where the engine would render things that were normally occluded. I know that units and buildings in SC2 have an occlusion height, so if your map uses the standard fog of war then it might help if you used occluder heights and eye heights on your units. How it works is basically:

if unit A has eye height < unit B's occluder height, then unit A cannot see behind unit B

if unit A has eye height > unit B's occluder height, then unit B doesnt block A's LOS

but since all game data (including units inside the fog) is stored client-side and not server-side, the engine will store and may try to render anything within the screen bounds even if it is not actually visible
 
Level 7
Joined
Sep 24, 2008
Messages
281
well this problem plagued the performance of a lot of MMO's, where the engine would render things that were normally occluded. I know that units and buildings in SC2 have an occlusion height, so if your map uses the standard fog of war then it might help if you used occluder heights and eye heights on your units. How it works is basically:

if unit A has eye height < unit B's occluder height, then unit A cannot see behind unit B

if unit A has eye height > unit B's occluder height, then unit B doesnt block A's LOS

but since all game data (including units inside the fog) is stored client-side and not server-side, the engine will store and may try to render anything within the screen bounds even if it is not actually visible

Yeah, I see what you're saying. Does a custom script exist in which all doodads in a specific region may be hidden? Would that help at all?
 
Status
Not open for further replies.
Top