-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactor-replication.html
168 lines (163 loc) · 10.2 KB
/
actor-replication.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head lang="en">
<title>UnrealWiki: Actor/Replication</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" media="screen, print"
href="shared/stylebase.structural.css">
<link rel="stylesheet" type="text/css" media="screen"
href="shared/template-default.css">
<link rel="stylesheet" type="text/css" media="screen"
href="shared/styles.chblue.css">
<link rel="stylesheet" type="text/css" media="print"
href="shared/template-default-print.css">
<!--[if IE 6]>
<style>
/* dirty hack for IE6. */
#quickbar {
position: absolute;
}
</style>
<![endif]-->
<link rel="start" href="http://wiki.beyondunreal.com/">
<link rel="glossary" href="http://wiki.beyondunreal.com/wiki/Terminology">
<link rel="help" href="http://wiki.beyondunreal.com/wiki/Using_The_Wiki">
<script type="text/javascript" src="shared/dhtml.js"></script>
<script type="text/javascript" src="shared/dhtml-menu.js"></script>
<style type="text/css">#dhtml-menu { background: #eee; padding: 5px 0px; margin-right: -20px; border: 1px solid #888; border-left: 1px solid #ccc; border-top: 1px solid #ccc; border-right: 1px solid #888; border-bottom: 1px solid #888 }
#dhtml-menu td { color: #000; font-family: Arial,Helvetica,sans-serif; font-size: 9pt; line-height: 13pt; padding: 1px 10px; cursor: default }
#dhtml-menu a { color: #000; font-family: Arial,Helvetica,sans-serif; font-size: 9pt; line-height: 13pt; text-decoration: none }
#dhtml-menu tt { font-family: monospace; font-size: 9pt }
#dhtml-menu-separator { height: 1px; background: red }
#dhtml-menu-anchor { cursor: default }
</style>
<script type="text/javascript" src="shared/expandable.js"></script>
</head>
<body onLoad="menuInit(); document.cookie='page=Actor/Replication; path=/'" class="default">
<div id="scrolling"><!-- contains all except the fixed sidebar -->
<div id="topbar" class="bar">
<div class="righthalf">
<form class="inline" method="post" action="/wiki" enctype="application/x-www-form-urlencoded"><input type="text" name="search" size="20" /> <input type="submit" name="search" value="search" /></form>
</div>
<div class="lefthalf">
<script type="text/javascript"><!--
menuAlignRight = false;
//--></script>
<span><script type="text/javascript"><!--
menuWriteAnchor("Quick Navigation") //--></script></span> | <a href="(start).html">Home Page</a> | <a href="recent-changes.html">Recent Changes</a> | <a href="http://wiki.beyondunreal.com/wiki?action=editprefs">Preferences</a>
</div>
</div>
<div id="content"><!-- contains the title and article -->
<h1 class='pagetitle'><a href="actor.html">Actor</a>/<a href="http://wiki.beyondunreal.com/wiki?back=Actor/Replication">Replication</a></h1>
<div class="wiki"><p>This page describes the properties of <a href="actor.html">Actor</a> that have bearing on the behavior of <a href="replication.html">Replication</a></p>
<dl><dt>NetPriority</dt><dd>This floating-point value is used to determine how much network bandwidth is allocated for keeping the actor up-to-date across the network. The ratio of an actor's NetPriority and another actor's NetPriority is the same ratio as the bandwidth that will be allocated to each. The default value for actors is 1.00 (Checked in UT99 and in UT2004).</dd><dt>NetUpdateFrequency</dt><dd><p>NetUpdateFrequency allows you to throttle back the amount of network traffic generated to keep an actor up-to-date. This is useful when the data changes frequently but you only want periodic updates. For example, PlayerReplicationInfo contains a lot of data about the client. Stuff like the various players' pings may change quite frequently, and having the client keep track of such information would be quite a network hog. But since PlayerReplicationInfo has a NetUpdateFrequency of 2, it is only updated twice a second, which is much better for that player's, and of course the server's, bandwidth. </p>
<p>Here are some example NetUpdateFrequencies for some UT2004 classes:</p>
<table class="paratable-border" border=0 cellspacing=0 cellpadding=0><tr valign=top><td align=center><em class="em2">Class</em></td>
<td align=center><em class="em2">NetUpdateFrequency</em></td>
</tr>
<tr valign=top><td align=center>Actor</td>
<td align=center>100 Hz</td>
</tr>
<tr valign=top><td align=center>Pawn</td>
<td align=center>100 Hz when possessed, or 5 Hz when unpossessed</td>
</tr>
<tr valign=top><td align=center>Mover</td>
<td align=center>1 Hz</td>
</tr>
<tr valign=top><td align=center>Pickup</td>
<td align=center>0.1 Hz, or 8 Hz when just dropped</td>
</tr>
<tr valign=top><td align=center>PlayerReplicationInfo</td>
<td align=center>1 Hz</td>
</tr>
</table>
<p>As you can see from the table, it's perfectly fine to alter the actor's NetUpdateFrequency to reflect periods of increased or decreased activity.</p>
</dd><dt>bNoRepMesh</dt><dd>don't replicate mesh</dd><dt>bNotOnDedServer</dt><dd>destroy if on dedicated server and RemoteRole == ROLE_None (emitters, etc.)</dd></dl>
<p>The following <em class="em2">const bool</em> flags are maintained by the engine and are only relevant <a href="replication-block.html">during replication</a>:</p>
<dl><dt>bNetInitial</dt><dd>It is true if this is the first time this actor has been replicated to the client. It is false otherwise. This is useful for things like projectiles that only need to have their location and velocity replicated once and their movement can then be predicted reliably.</dd><dt>bNetOwner</dt><dd>Indicates whether the client we are considering replicating to is the owner of the actor we are replicating. </dd><dt>bNetRelevant</dt><dd>Only valid server side, indicates that the server considers the actor <a href="relevance.html">relevant</a> to the client.</dd><dt>bDemoRecording</dt><dd>Are we currently demo recording?</dd><dt>bClientDemoRecording</dt><dd>True if we are currently recording a client-side demo</dd><dt>bRepClientDemo</dt><dd>True if remote client is recording demo</dd><dt>bClientDemoNetFunc</dt><dd>True if we're client-side demo recording and this call originated from the remote.</dd><dt>bDemoOwner</dt><dd>Demo recording driver owns this actor.</dd></dl>
<h2><a name="0.1"></a>Related Topics</h2>
<ul><li><a href="actor.html">Actor</a> class, which contains the properties governing replication behaviour</li>
<li><a href="introduction-to-replication.html">Introduction to Replication</a></li>
<li><a href="replication-block.html">Replication Block</a></li>
<li><a href="role.html">Role</a> and RemoteRole, and <a href="netmode.html">NetMode</a>.</li>
<li><a href="netcode-idioms.html">Netcode Idioms</a></li>
<li><a href="simulated-function.html">Simulated Function</a></li>
<li><a href="replicated-function.html">Replicated Function</a></li>
<li><a href="animation-replication.html">Animation Replication</a></li>
<li><a href="another-look-at-replication.html">Another Look At Replication</a></li>
<li><a href="replication-examples.html">Replication examples</a><ul><li><a href="replication-examples-battle.html">Replication Examples/Battle City</a></li>
<li><a href="replication-examples-giant.html">Replication Examples/Giant Spider Execution</a></li>
</ul>
</li>
</ul>
<hr class="thin"><p><a href="category-class-ut2003.html">Category Class (UT2003)</a></p>
<p><a href="category-class-ut2004.html">Category Class (UT2004)</a></p>
<script type="text/javascript"><!--
menuItemAdd("Related Topics", "#0.1");
menuWrite() //--></script></div>
</div>
<div id="footer" class="bar">
<p><form method="post" action="http://wiki.beyondunreal.com/wiki" enctype="application/x-www-form-urlencoded">
<a href="(start).html">Home Page</a> | <a href="actor.html">Actor</a> | <a href="recent-changes.html">Recent Changes</a> | <a href="http://wiki.beyondunreal.com/wiki?action=editprefs">Preferences</a><br>
<a href="http://wiki.beyondunreal.com/wiki?action=edit&id=Actor/Replication">Edit text of this page</a> | <a href="http://wiki.beyondunreal.com/wiki?action=history&id=Actor/Replication">View other revisions</a><br>Last edited January 18, 2006 23:56 <a href="http://wiki.beyondunreal.com/wiki?action=browse&diff=1&id=Actor/Replication">(diff)</a><br>Search: <input type="text" name="search" size="20" /><input type="hidden" name="dosearch" value="1" /><br><br><small><a href="http://wiki.beyondunreal.com/wiki/Actor/Replication">Original page</a> – copy created Sat, Jun 23, 2007</small><div></div>
</form>
</p>
<p>Once I get that upgrade to 36-hour days, I will tackle that. (Mychaeel)
</p>
</div>
</div><!-- close of "scrolling" div -->
<div id="quickbar">
<div id="logo"><a href="http://wiki.beyondunreal.com/"><img src="shared/wikilogo.jpg" width="143" height="100" border="0"></a>
</div>
<div class="qbsitename">
<p>The Unreal Engine Documentation Site</p>
</div>
<div class="qbsection">
<p><a href="metatopics.html">Wiki Community</a></p>
<p><a href="category-category.html">Topic Categories</a></p>
<p><a href="/cgi-bin/imageupload.cgi/wiki-ext/imageupload.htt" target="_blank ">Image Uploads</a></p>
<p><a href="http://wiki.beyondunreal.com/wiki?action=random">Random Page</a></p>
<p><a href="recent-changes.html">Recent Changes</a></p>
<p><a href="offline-wiki.html">Offline Wiki</a></p>
</div><div class="qbsection">
<p><a href="unreal-engine.html">Unreal Engine</a></p>
<p><a href="console-commands.html">Console Commands</a></p>
<p><a href="terminology.html">Terminology</a></p>
<p><a href="category-faq.html">FAQs</a></p>
<p><a href="help-desk.html">Help Desk</a></p>
</div><div class="qbsection">
<p><a href="topics-on-mapping.html">Mapping Topics</a></p>
<p><a href="mapping-lessons.html">Mapping Lessons</a></p>
<p><a href="unrealed-3.html">UnrealEd Interface</a></p>
</div><div class="qbsection">
<p><a href="unrealscript.html">UnrealScript Topics</a></p>
<p><a href="unrealscript-lessons.html">UnrealScript Lessons</a></p>
<p><a href="making-mods.html">Making Mods</a></p>
<p><a href="class-tree.html">Class Tree</a></p>
</div><div class="qbsection">
<p><a href="topics-on-modeling.html">Modeling Topics</a></p>
</div><div class="qbsection">
<p><a href="chongqing-page.html">Chongqing Page</a></p>
<p><a href="log-in.html">Log In</a></p></div>
</div>
</body></html>