当前位置:网站首页>[Huawei online battle service] how can new players make up frames when the client quits reconnection or enters the game halfway?
[Huawei online battle service] how can new players make up frames when the client quits reconnection or enters the game halfway?
2022-07-26 14:59:00 【Huawei Developer Forum】
The problem background
Use frame synchronization to realize multiplayer online games , Framing is an inextricable topic . Conventional weak net complementary frame ,SDK Automatic frame filling has been realized , Games can be ignored . For scenes where the client is shut down for a long time and re enters the room or players join in the middle of the game , New players play online SDK The default is to supplement the frame from the first frame of the game , The online game server will not cache all the supplementary frame data, which is usually cached 5 Minute history frame data , At this time, simply rely on SDK Automatic frame filling will fail . How to solve this problem , Here's a way of thinking .
Solution
Specify the owner of the house or a player in the room in the game , Regularly save the data status that needs to be synchronized in the current game ( For example, refresh every minute , The refresh cycle should be less than five minutes ), And record the current frame id, Then synchronize the data to other players in the room through certain means ( For example, by modifying room properties , Save it in room properties ), When new players join the room, they can go from room Get the room property in the instance , Then analyze the last room state data recorded therein , Get status data and frames id data .
At this time, only based on the room status data , Supplemented by slave frames id+1 After that, the synchronization of room data can be realized by supplementing frames .
How to specify from a id Start framing ? Two scenarios :
Enabled SDK Auto framing scene , call SDK Reset the start of complementary frame provided id Interface .

closed SDK Auto framing scene , call SDK Manual frame filling interface provided .

Get it done !
Official information : Huawei online battle service
边栏推荐
- Sqldeveloper tools quick start
- Advanced MySQL v. InnoDB data storage structure
- 31. Opinion based relational pivoting forcross domain aspect term extraction reading notes
- Lean product development: principles, methods and Implementation
- Unity learning notes – infinite map
- SA-Siam:用于实时目标跟踪的孪生网络
- 2. Add two numbers
- 1. Sum of two numbers
- 一个满的10L容器,7L、4L空的容器,如何得到5L的水
- 晶品特装递交注册:第一季营收降80% 陈波控制68.5%股权
猜你喜欢

10 schemes to ensure interface data security

RPN:Region Proposal Networks (区域候选网络)

CVE-2022-33891 Apache spark shell 命令注入漏洞复现

Introduction to C language must brush the daily question of the collection of 100 questions (1-20)

OSPF和MGRE实验

Figure introduction to neural network core dataset

【方差分析】之matlab求解

SA-Siam:用于实时目标跟踪的孪生网络

Canvas mesh wave animation JS special effect

RPN: region proposal networks
随机推荐
Usage of nn.conv2d and nn.convtranspose2d functions in pytorch
Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
RPN: region proposal networks
Whaledi message queue stability improvement practice
【文件上传漏洞-06】分布式配置文件攻击实验—以upload-labs-4为例
As the "first city" in Central China, Changsha's "talent attraction" has changed from competition to leadership
postman 环境变量设置代码存放
Summary of target tracking related knowledge
Create root permission virtual environment
Qt开发高级进阶:如何在显示时适合视窗宽度和高度(fitWidth+fitHeight)
【华为联机对战服务】客户端退出重连或中途进入游戏,新玩家如何补帧?
Figure introduction to neural network core dataset
JS creative range select drag and drop plug-ins
The practice of software R & D should start from the design
Siamfc: full convolution twin network for target tracking
C# NanUI 相关功能整合
VP视频结构化框架
PyTorch中 nn.Conv2d与nn.ConvTranspose2d函数的用法
Wechat applet - "do you really understand the use of applet components?
Pdf translation, which translation company in Beijing is good