LoadBalancer.beco: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{stub}}<onlyinclude>
<onlyinclude>
{{resloc|path=Ecosystem/MapTower.beco|locations=[[Bootup.pack]]}}
{{resloc|path=Ecosystem/MapTower.beco|locations=[[Bootup.pack]]}}
[[File:LoadBalancer.png||right|thumb|Visual representation. An interactive version is available in the object map.]]
[[File:LoadBalancer.png||right|thumb|Visual representation. An interactive version is available in the object map.]]
'''LoadBalancer.beco''' is a [[beco]] file. Its purpose is currently totally unknown.
'''LoadBalancer.beco''' is a [[beco]] file. It is used to temporarily reduce the draw distance in some areas to help with performance.
</onlyinclude>
</onlyinclude>
[[LODMgr]]<ref>Level of Detail Manager code @ 0x7101254C38 in the Switch 1.5.0 executable</ref> does the following every game tick:
<source lang="c++">
Player* link = ActorSystem::sInstance->getPlayer();
int balancer = eco::getCurrentAreaData(
    link->position.x,
    link->position.z,
    Ecosystem::sInstance,
    &Ecosystem::sInstance->loadBalancer);
this->cpuLoadBalancer = balancer;
if ( balancer && this->drawDistanceMultiplier > 0.7 )
  this->drawDistanceMultiplier = 0.7;
</source>
Names come from leftover debug functions in LODMgr.


[[Category:Content (BotW)]]
[[Category:Content (BotW)]]
[[Category:Ecosystem (BotW)]]
[[Category:Ecosystem map files (BotW)]]

Latest revision as of 23:26, 10 March 2019

This resource is found in Bootup.pack.

Its canonical resource path is "Ecosystem/MapTower.beco".

Visual representation. An interactive version is available in the object map.

LoadBalancer.beco is a beco file. It is used to temporarily reduce the draw distance in some areas to help with performance.

LODMgr[1] does the following every game tick:

Player* link = ActorSystem::sInstance->getPlayer();
int balancer = eco::getCurrentAreaData(
    link->position.x,
    link->position.z,
    Ecosystem::sInstance,
    &Ecosystem::sInstance->loadBalancer);
this->cpuLoadBalancer = balancer;
if ( balancer && this->drawDistanceMultiplier > 0.7 )
  this->drawDistanceMultiplier = 0.7;

Names come from leftover debug functions in LODMgr.

  1. Level of Detail Manager code @ 0x7101254C38 in the Switch 1.5.0 executable