⇤ ← Revision 1 as of 2021-03-05 05:21:50
Size: 915
Comment:
|
← Revision 2 as of 2021-03-05 08:51:27 ⇥
Size: 998
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
* [[/Actors_and_their_Owning_Connections | Actors and their Owning Connections]] |
Actors是replication机制的主力。
The server will maintain a list of Actors, and will update the client periodically so that the client will maintain a close approximation of each Actor (that is marked to be replicated).
Actors are updated in two main ways:
- Property updates
- RPCs
这两种同步方式的主要区别是:属性同步是自动进行的,当属性改变时。而RPCs是被主动调用触发的。还有就是属性同步中,即便属性的值没有发生改变,那么它虽然不占用带宽,但是CPU资源仍在实时监控它的状态,即它会占用系统资源。
因此,
- 属性同步方式特别适合那种频繁改变的状态(此种情形,属性同步方式比较省心)
- RPCs适合于那种变化不那么频繁的状态(此种情形,RPCs比较节省资源)
几个主题: